nonparam_rmst: Calculate RMST for each arm as well as contrast
Description
Non-parametric RMST function that allows for
the tau (follow-up time) to be arbitrarily large. Uno package
restricts it to be min(last observed event in either arm).
Provides estimate, SE, CI for each arm. Provides same for
difference in arms (and also p-value).
Usage
nonparam_rmst(dat, tau, alpha = 0.05)
Value
A list including data.frame of results in each arm (RMST, RMTL, SE, pvalue, CI)
as well as data.frame of results for Arm1 - Arm0 RMST.
Arguments
dat
Data frame of time-to-event data which MUST have the columns
'time', 'arm', and 'status
tau
How long of a follow-up to consider, i.e. we integrate the survival
functions from 0 to tau
alpha
Confidence interval is given for (alpha/2, 1-alpha/2) percentiles