powered by
DataSimEnrollment
Create 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.
n
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