ggeffects icon indicating copy to clipboard operation
ggeffects copied to clipboard

threshold calculations from ggpredict, type="survival"

Open cperk opened this issue 3 years ago • 2 comments

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

cperk avatar Jun 16 '21 16:06 cperk

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.

strengejacke avatar Jul 28 '21 21:07 strengejacke

+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. :heart: the package! Use it often.

DanSimonet avatar Nov 12 '22 07:11 DanSimonet