View source: R/ms_event_time.R
| ms_event_time | R Documentation |
Solves for the calendar time at which the expected total number of events of an endpoint reaches each target.
ms_event_time(scenario, n, events, endpoint = c("os", "pfs"))
scenario |
An |
n |
Total sample size. |
events |
Target numbers of events (positive). |
endpoint |
|
Numeric vector of calendar times. An error is raised when a target cannot be reached.
ms_events
ctl <- ms_model(death = log(2) / 12)
trt <- ms_model(death = 0.7 * log(2) / 12)
scn <- ms_scenario(ctl, trt, accrual = ms_accrual(rate = 20))
ms_event_time(scn, n = 400, events = c(150, 300))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.