Learn R Programming

fastStat (version 1.4)

survdiff_p.value: Extract P Value after survdiff() function

Description

Extract P Value after survdiff() function

Usage

survdiff_p.value(survdiff)

Arguments

survdiff

the results of survdiff() function

Value

p value

Examples

Run this code
# 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