
Calculate RMST for a single cut-off time point
rmst_single_arm(
time_var,
event_var,
tau,
group_label = "Single Group",
alpha = 0.05
)
A data frame of
Cutoff time: same as tau
;
Group label: same as group_label
;
Estimated RMST;
Variance, standard error, and CIs of the estimated RMST;
Number of events.
A numeric vector of follow up time.
A numeric or integer vector of the status indicator; 0=alive 1=event.
A value of pre-defined cut-off time point.
A character of customized treatment group name.
A numeric value of the significant level for RMST confidence interval. Default is 0.05.
data(ex1_delayed_effect)
data_single_arm <- ex1_delayed_effect[ex1_delayed_effect$trt == 1, ]
simtrial:::rmst_single_arm(
time_var = data_single_arm$month,
event_var = data_single_arm$evntd,
tau = 10,
group_label = "Treatment 1",
alpha = 0.05
)
Run the code above in your browser using DataLab