powered by
Calculate nonparametric RMST for a single arm up to tau for data.frame with time and status
integrate_survdat(dat, tau, alpha = 0.05)
data.frame with rows for RMST and RMTL and columnns for estimate, std err, pvalue, and CI
Data frame of time-to-event data which MUST have the columns 'time' and 'status' exactly
The cutoff time, a scalar
Level for confidence interval
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)
Run the code above in your browser using DataLab