powered by
Extract P Value after survdiff() function
survdiff_p.value(survdiff)
the results of survdiff() function
p value
# NOT RUN { library(survival) diff_result=survdiff(Surv(qsec,vs)~cyl,data=mtcars) survdiff_p.value(diff_result) # }
Run the code above in your browser using DataLab