custom_enrollment: Create a 'DataSimEnrollment' Object

View source: R/simulate_data.R

custom_enrollmentR 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"
)

psborrow2 documentation built on April 4, 2025, 12:37 a.m.