enrollment {bayesCT}R Documentation

Simulating enrollment dates

Description

This function simulates enrollment dates using either poisson distribution

Usage

enrollment(param, N_total, time = NULL)

Arguments

param

a vector of lambda in poisson

N_total

a numeric value of total sample size

time

a vector of the length(param) - 1 indicating end of time when a specific lambda is used

Value

a vector of enrollment dates

Examples

enrollment(param = c(0.003, 0.7), 100, time = 10)
enrollment(param = c(0.3, 0.5, 0.9, 1.2, 2.1), 200, c(20, 30, 40, 60))


[Package bayesCT version 0.99.3 Index]