| ms_events | R Documentation |
Expected numbers of patients, events and dropouts over calendar time
ms_events(scenario, n, calendar_time, endpoint = c("os", "pfs"))
scenario |
An |
n |
Total sample size. |
calendar_time |
Calendar times from the start of the study. |
endpoint |
|
For group g with allocation probability p_g, the expected number of
events by calendar time t is n p_g times the integral from 0 to t
of A(t - s) f_g(s) G_g(s), where A is the enrolled fraction, f_g the
density of the endpoint and G_g the probability of no dropout. The
expected number of dropouts is obtained in the same way with the dropout
density. For PFS, the dropouts include the censoring of PFS only
(dropout_pfs of ms_model) and, with
pfs_switch = "censor" in ms_scenario, the censoring
at a switch before progression.
A data frame with time, the numbers enrolled
(enrolled, enrolled_control, enrolled_treatment),
the expected events (events_control, events_treatment,
events) and the expected dropouts (dropouts_control,
dropouts_treatment).
ms_event_time, lr_moments
ctl <- ms_model(death = log(2) / 12, dropout = 0.005)
trt <- ms_model(death = 0.7 * log(2) / 12, dropout = 0.005)
scn <- ms_scenario(ctl, trt, accrual = ms_accrual(rate = 20))
ms_events(scn, n = 400, calendar_time = c(12, 24, 36))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.