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

threshold calculations from ggpredict, type="survival" #223

Open
cperk opened this issue Jun 16, 2021 · 2 comments
Open

threshold calculations from ggpredict, type="survival" #223

cperk opened this issue Jun 16, 2021 · 2 comments

Comments

@cperk
Copy link

cperk commented Jun 16, 2021

Hi @strengejacke !

Is there a way to make calculations based on ggpredict, type=survival? For example, using the model in #199 I would like to estimate survival time at which 25% of the overall population has died. I would also like to do this for each group, e.g. day on which 25% of each group (Treatment) has died.

Finally, is there a way to add dashed pointer lines to show these thresholds? See this graph from the survival package that includes median survival lines for reference.

Screen Shot 2021-06-16 at 12 39 31 PM

Thanks!!

-Carrie

@strengejacke
Copy link
Owner

Hi Carrie, sorry for being so quiet, but I'm currently focusing on other packages, and will get back to ggeffects after the summer break. But I'll give your issue a closer look the next days.

@DanSimonet
Copy link

DanSimonet commented Nov 12, 2022

+1 for this recommendation. It would be very useful to specify different time values in ggpredict to get custom estimates of probability of survival. Since survival models do not include time as a term in the formula it is unclear how to request different intervals. ❤️ the package! Use it often.

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

No branches or pull requests

3 participants