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: 0x55fbea906810>
#>
#> Slot "label":
#> [1] "Poisson enrollment distribution"
#>