Learn R Programming

crmPack (version 2.1.0)

CohortSizeRandom-class: CohortSizeRandom

Description

[Experimental]

CohortSizeRandom is the class for random cohort sizes drawn from a uniform distribution between min_size and max_size (inclusive).

Usage

CohortSizeRandom(min_size, max_size)

.DefaultCohortSizeRandom()

Arguments

min_size

(integer)
see slot definition.

max_size

(integer)
see slot definition.

Slots

min_size

(integer)
minimum cohort size.

max_size

(integer)
maximum cohort size.

Examples

Run this code
# Random cohort size between 1 and 5.
my_size <- CohortSizeRandom(min_size = 1, max_size = 5)

Run the code above in your browser using DataLab