kaigu1990 / stabiot

Common Statistical Analysis for Clinical Trials in Biotech
GNU General Public License v3.0
2 stars 0 forks source link

Create a summary function for survival analysis #10

Closed kaigu1990 closed 3 months ago

kaigu1990 commented 5 months ago

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.

This blog is for reference https://www.bioinfo-scrounger.com/archives/survival-oncology-r/