kmvalue: Obtain values for Kaplan-Meier plotting

Description Usage Arguments Value Examples

View source: R/kmvalue.R

Description

Obtain values for Kaplan-Meier plotting

Usage

1

Arguments

x

Nx2 data matrix,first columen represents survival time of the i-th subject, second column represents censored flag (0 if not censored, 1 if censored)

Value

Values used for Kaplan-Meier plotting

Examples

1
2
3
4
t1 <- c(2,3,4,5.5,7,10,12,15)
c1 <- c(0,0,1,0,0,1,0,0)
x1<-cbind(t1,c1)
kmvalue(x1)

zhangyuwinnie/RPEXE.RPEXT documentation built on May 4, 2019, 10:17 p.m.