Learn R Programming

psborrow2 (version 0.0.4.0)

custom_enrollment: Create a DataSimEnrollment Object

Description

Create a DataSimEnrollment Object

Usage

custom_enrollment(fun, label)

Value

A DataSimEnrollment object

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

Examples

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

Run the code above in your browser using DataLab