View source: R/simulate_data.R
enrollment_constant | R Documentation |
Constant Enrollment Rates
enrollment_constant(rate, for_time = rep(1, length(rate)))
rate |
Number of patients to enroll per unit time |
for_time |
Number of time periods for each rate. Must be equal length to |
An object of class DataSimEnrollment to be passed to create_data_simulation()
# 10 patients/month for 6 months, then 5/month for 6 months
enroll_obj <- enrollment_constant(rate = c(10, 5), for_time = c(6, 6))
enroll_obj@fun(n = 80)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.