Closed ellessenne closed 6 years ago
Alessandro,
Good catch. I have now corrected this in the master and develop branches on GitHub.
I would prefer to wait for a week for any further bug reports before pushing to CRAN.
Sincerely, Mark.
On 09/01/2017 01:20 PM, Alessandro Gasparini wrote:
Hi, I just updated to the new version released on CRAN and I cannot get predict to work when including a log-normal frailty in the model. Using the kidney data as an example:
library(rstpm2) data(kidney)
A Gamma frailty model works fine:
fitg = stpm2(Surv(time, status) ~ age + sex, cluster = kidney$id, data = kidney, RandDist = "Gamma") invisible(predict(fitg))
Conversely, using a log-normal frailty:
fitln = stpm2(Surv(time, status) ~ age + sex, cluster = kidney$id, data = kidney, RandDist = "LogN") invisible(predict(fitln))
With the previous version on CRAN the same code runs fine and predict works as expected. Is there any underlying change I am missing, or any idea on how to fix this?
My R session info:
sessionInfo()
Thanks! Best wishes,
Alessandro
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/mclements/rstpm2/issues/7, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAiBCfqIopP0XwivU53s81pPkAbTxAtpks5sd-iGgaJpZM4PKBpH.
Thank you Mark! No problem, it makes sense to wait for other bug reports before pushing to CRAN. Best wishes,
Alessandro
Alessandro,
I have now pushed a bug fix to CRAN (version 1.4.1). Does this address your issue?
Thanks again for the bug report.
Kindly, Mark.
Hello Mark, Thanks for the update, it seems to be working fine now! Best wishes,
Alessandro
Hi, I just updated to the new version released on CRAN and I cannot get
predict
to work when including a log-normal frailty in the model. Using thekidney
data as an example:A Gamma frailty model works fine:
Conversely, using a log-normal frailty:
With the previous version on CRAN the same code runs fine and
predict
works as expected. Is there any underlying change I am missing, or any idea on how to fix this?My R session info:
Thanks! Best wishes,
Alessandro