custom_enrollment {psborrow2}R Documentation

Create a DataSimEnrollment Object

Description

Create a DataSimEnrollment Object

Usage

custom_enrollment(fun, label)

Arguments

fun

A function that takes one argument n the number of enrollment times to observe and returns a vector of times.

label

A user-friendly label

Value

A DataSimEnrollment object

Examples

custom_enrollment(
  fun = function(n) rpois(n, lambda = 5),
  label = "Poisson enrollment distribution"
)

[Package psborrow2 version 0.0.3.4 Index]