View source: R/StaggeredRecruiter.R
| StaggeredRecruiter | R Documentation |
It assumes a uniform enrollment with constant rate in each of the time
windows. This function can be used as the enroller when calling
trial() to define a trial.
StaggeredRecruiter(n, accrual_rate)
n |
integer. Number of random numbers. |
accrual_rate |
a data frame of columns
|
accrual_rate <- data.frame(
end_time = c(12, 13:17, Inf),
piecewise_rate = c(15, 15 + 6 * (1:5), 45)
)
StaggeredRecruiter(30, accrual_rate)
accrual_rate <- data.frame(
end_time = c(3, 4, 5, 8, Inf),
piecewise_rate = c(1, 2, 2, 3, 4)
)
StaggeredRecruiter(30, accrual_rate)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.