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

CIs for get_predicted.coxph() when type = "expected" #531

Open
strengejacke opened this issue Mar 14, 2022 · 3 comments
Open

CIs for get_predicted.coxph() when type = "expected" #531

strengejacke opened this issue Mar 14, 2022 · 3 comments
Labels
3 investigators ❔❓ Need to look further into this issue Bug 🐛 Something isn't working get_predicted Function specific issues

Comments

@strengejacke
Copy link
Member

@vincentarelbundock @bwiernik for coxph, type = "expected" seems to return incorrect CIs - probably because the back-transformation is not correct. Do you know how to get CIs from the predictions and SEs, when get_predicted(mod, predict = "expected")?

From ?predict.coxph:

type the type of predicted value. Choices are (...) the expected number of events given the covariates and follow-up time ("expected") (...). The survival probability for a subject is equal to exp(-expected).

Originally posted by @strengejacke in #530 (comment)

@strengejacke strengejacke added Bug 🐛 Something isn't working 3 investigators ❔❓ Need to look further into this issue labels Mar 14, 2022
@vincentarelbundock
Copy link
Contributor

It has been yeeeears since I've worked with these kinds of models, and I'm not sure exactly what should be done here. I can look into this issue eventually, but it's likely to take a couple weeks at least.

@strengejacke strengejacke removed this from the insight 0.17.0 CRAN submussion milestone Mar 15, 2022
@strengejacke
Copy link
Member Author

Ok, let's leave this open and work later on it.

@bwiernik
Copy link
Contributor

Yeah, it's not just a inverse link for a survival model. Need to dig in to remember

@strengejacke strengejacke added the get_predicted Function specific issues label Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 investigators ❔❓ Need to look further into this issue Bug 🐛 Something isn't working get_predicted Function specific issues
Projects
None yet
Development

No branches or pull requests

3 participants