Description Usage Arguments Value Examples
View source: R/integrate_survdat.R
Calculate nonparametric RMST for a single arm up to tau for data.frame with time and status
1 | integrate_survdat(dat, tau, alpha = 0.05)
|
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 |
data.frame with rows for RMST and RMTL and columnns for estimate, std err, pvalue, and CI
1 2 3 4 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.