Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GenEst::desc column names are not ordered correctly anymore #653

Open
jlombard314159 opened this issue Feb 15, 2021 · 3 comments
Open

GenEst::desc column names are not ordered correctly anymore #653

jlombard314159 opened this issue Feb 15, 2021 · 3 comments

Comments

@jlombard314159
Copy link
Contributor

Hi Dan. In a recent GenEst release I saw a note that there was a bug fix for GenEst::desc(). This seems to have actually created a bug. If you enter a vector with length >1 the confidence interval (_lwr and _upr) do not get assigned properly.

See code below:

library(GenEst)
data_CP <- mock$CP

cpModel <- cpm(formula_l = l ~ 1, formula_s = s ~ 1, data = data_CP,
             left = "LastPresentDecimalDays",
             right = "FirstAbsentDecimalDays", dist = "weibull"
           )

GenEst::desc(cpModel,Ir = c(1,100,10000))

image

If needed I can dig into GenEst::desc() more but it seems like we can just revert back.

@ddalthorp
Copy link
Owner

Thanks, John. This looks like an older version. I think 1.4.5.1 (at CRAN and github.com) works.

@jlombard314159
Copy link
Contributor Author

It did. Thank you!

@jlombard314159
Copy link
Contributor Author

Hi Dan.

I updated to GenEst 1.4.5.1. The code below errors if I provide only one search interval value for Ir. Ir = c(1,100,1000) or anything with >1 length works though.

library(GenEst)
data_CP <- mock$CP

cpModel <- cpm(formula_l = l ~ 1, formula_s = s ~ 1, data = data_CP,
             left = "LastPresentDecimalDays",
             right = "FirstAbsentDecimalDays", dist = "weibull"
           )

GenEst::desc(cpModel,Ir = c(1))

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants