Closed hezht3 closed 1 year ago
Hi Chris,
I would like to reach out for an issue on post-modeling cox-snell residuals for generalized gamma parametric survival model.
I tried several cases, and whenever the model has later entries, I will get the following errors below:
> model <- flexsurvreg(formula = Surv(entry, exit, event) ~ exposure, dist = "gengamma", data = data) > coxsnell_flexsurvreg(model1) Error in `[.default`(mf[, 1], , "time") : subscript out of bounds
Checking the source code, the error seems coming from this line:
t <- mf[, 1][, "time"]
Thanks very much!
Thanks for the report, I think this is now fixed in https://github.com/chjackson/flexsurv-dev/commit/dc2dbabca9b1bfda948641893758163bf170e29e .
Thank you so much! This works perfect for my model.
Hi Chris,
I would like to reach out for an issue on post-modeling cox-snell residuals for generalized gamma parametric survival model.
I tried several cases, and whenever the model has later entries, I will get the following errors below:
Checking the source code, the error seems coming from this line:
Thanks very much!