Create a DataSimEnrollment
Object
Value
A DataSimEnrollment object
Examples
custom_enrollment(
fun = function(n) rpois(n, lambda = 5),
label = "Poisson enrollment distribution"
)
#> An object of class "DataSimEnrollment"
#> Slot "fun":
#> function(n) rpois(n, lambda = 5)
#> <environment: 0x55d70c6b8d60>
#>
#> Slot "label":
#> [1] "Poisson enrollment distribution"
#>