I need a function to help me summarize the results from survfit() and survdiff(). For example, if the primary endpoint is PFS, I would like to know how many events and censors there are in each treatment, adding the median PFS, corresponding CI, PFS rate at different periods, and log-rank P-value. If I set the stratified factors, the output should also include the stratified results. Regarding to Cox model, I would like to know the HR and corresponding CI as well. The most important thing is that the above results should have the same method as SAS, so that this R function could be used as a QC role for monitoring.
[x] Add s_get_surv() to summarize the essential information for the survival analysis.
[x] median, quantile and range of survival time.
[x] survival rate at specific time points and the corresponding difference and p-value.
[x] stratified log-rank p-value
[x] Add s_get_coxph() to summarize the essential information for the cox model.
I need a function to help me summarize the results from
survfit()
andsurvdiff()
. For example, if the primary endpoint is PFS, I would like to know how many events and censors there are in each treatment, adding the median PFS, corresponding CI, PFS rate at different periods, and log-rank P-value. If I set the stratified factors, the output should also include the stratified results. Regarding to Cox model, I would like to know the HR and corresponding CI as well. The most important thing is that the above results should have the same method as SAS, so that this R function could be used as a QC role for monitoring.s_get_surv()
to summarize the essential information for the survival analysis.s_get_coxph()
to summarize the essential information for the cox model.This blog is for reference https://www.bioinfo-scrounger.com/archives/survival-oncology-r/