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

Description Usage Arguments Value Examples

View source: R/surdiff_p.value.R

Description

Extract P Value after survdiff() function

Usage

1
survdiff_p.value(survdiff)

Arguments

survdiff

the results of survdiff() function

Value

p value

Examples

1
2
3
library(survival)
diff_result=survdiff(Surv(qsec,vs)~cyl,data=mtcars)
survdiff_p.value(diff_result)

Example output

Loading required package: survC1
Loading required package: survival
[1] 0.7381672

fastStat documentation built on Jan. 13, 2021, 7:32 a.m.