integrate_survdat: Integrate area under curve for single arm

Description Usage Arguments Value Examples

View source: R/integrate_survdat.R

Description

Calculate nonparametric RMST for a single arm up to tau for data.frame with time and status

Usage

1
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

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)

reconstructKM documentation built on Nov. 25, 2020, 5:08 p.m.