-
Notifications
You must be signed in to change notification settings - Fork 164
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
ggadjustedcurves function and median survival #227
Comments
Will try to do this in similar way as it is implemented in ggsurv btw: I noticed that people are referring to this function as |
|
Hi, I am using the ggadjustedcurves function for a class I teach and I want to clarify that this plots adjusted survival curves using the mean(s) of the adjustment covariate(s). I would also like to use the median but I am not sure if this has been implemented or not. |
Thanks, |
@pbiecek @kassambara Thank you very much for this great package! Has there already been a method developed to extract the median survival from the ggadjustedcurves function? Or is there another way that I can trace/calculate the median survival for the adjusted curves? I can only show these curves in my paper if I can report the median survival. It would be great if you can help me! |
@dvdkruijssen you can try the version in #423 |
@pbiecek @kassambara Thank you very much for your help! |
Thanks for a great package! adjCox <- coxph(Surv(OSm, Dod) ~ TumTyp+Age607080+CA199o200d+OpY5+TumStorlPcm+Diffd+TumSubTypi+N8, data = df) curve <- surv_adjustedcurves(adjCox, data = df, method = "conditional", variable = "TumTyp")
|
@Marsus1972 Please note that the 'curve' data frame has more rows, but they are not shown on the screen (the print function shows the first 333 rows). The frame has more rows and you can preview them e.g. with View() function. The second thing is that the rows of this frame correspond to event times and not to patients. |
Thank you for your reply!
So, the view function gives me 408 events (of 513 tumors), 204 for tumor A and 204 for tumor B.
Is it methodologically okay to calculate median overall survival for tumor A events even though there are more events than tumors (n=122 for tumor A). Do you have to do it manually or is there a specific function for this?
Many thanks in advance!
Skickat från min iPhone
… 11 apr. 2021 kl. 23:30 skrev Przemysław Biecek ***@***.***>:
@Marsus1972
Can you paste a reproducible example?
Please note that the 'curve' data frame has more rows, but they are not shown on the screen (the print function shows the first 333 rows). The frame has more rows and you can preview them e.g. with View() function.
The second thing is that the rows of this frame correspond to event times and not to patients.
So even if you have 500 patients but some have the same observation time this frame will have less rows.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
(e-mail from a user)
First off, thank you for such a great survival package in survminer! It has been by far one of the most used packages on my part during my master’s. I recently was introduced to adjusted survival curves and was even more excited to see this function implemented in survminer. However, is there a way to extract say median survival or survival at any timpoint for a particular group of interest?
Thanks and keep up the great work
Sameer
The text was updated successfully, but these errors were encountered: