set_enrollment {psborrow2} | R Documentation |
Set Enrollment Rates for Internal and External Trials
Description
Set Enrollment Rates for Internal and External Trials
Usage
set_enrollment(object, internal, external = internal)
Arguments
object |
A |
internal |
|
external |
|
Value
A DataSimObject
with updated enrollment_internal
and enrollment_external
slots.
Examples
data_sim <- create_data_simulation(
create_baseline_object(10, 10, 10),
event_dist = create_event_dist(dist = "exponential", lambdas = 1 / 36)
)
set_enrollment(
data_sim,
internal = enrollment_constant(rate = c(10, 5), for_time = c(6, 6)),
external = enrollment_constant(rate = c(5), for_time = c(20))
)
[Package psborrow2 version 0.0.3.4 Index]