Last chance! 50% off unlimited learning
Sale ends in
DataSimEnrollment
ObjectCreate a DataSimEnrollment
Object
custom_enrollment(fun, label)
A DataSimEnrollment object
A function that takes one argument n
the number of enrollment times to observe and returns a
vector of times.
A user-friendly label
custom_enrollment(
fun = function(n) rpois(n, lambda = 5),
label = "Poisson enrollment distribution"
)
Run the code above in your browser using DataLab