rmst_single_arm | R Documentation |
Calculate RMST for a single cut-off time point
rmst_single_arm(
time_var,
event_var,
tau,
group_label = "Single Group",
alpha = 0.05
)
time_var |
A numeric vector of follow up time. |
event_var |
A numeric or integer vector of the status indicator; 0=alive 1=event. |
tau |
A value of pre-defined cut-off time point. |
group_label |
A character of customized treatment group name. |
alpha |
A numeric value of the significant level for RMST confidence interval. Default is 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.
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
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.