| integrate_survdat {reconstructKM} | R Documentation | 
Integrate area under curve for single arm
Description
Calculate nonparametric RMST for a single arm up to tau for data.frame with time and status
Usage
integrate_survdat(dat, tau, alpha = 0.05)
Arguments
dat | 
 Data frame of time-to-event data which MUST have the columns 'time' and 'status' exactly  | 
tau | 
 The cutoff time, a scalar  | 
alpha | 
 Level for confidence interval  | 
Value
data.frame with rows for RMST and RMTL and columnns for estimate, std err, pvalue, and CI
Examples
time <- rnorm(100)
status <- rbinom(n=100, size=1, prob=0.5)
dat <- data.frame(time=time, status=status)
integrate_survdat(dat=dat, tau=2)
[Package reconstructKM version 0.3.0 Index]