- cdm
A CDM reference object where the synthetic cohort data will be
stored. This object should already include necessary tables such as `person`
and `observation_period`.
- name
A string specifying the name of the table within the CDM where
the cohort data will be stored. Defaults to "cohort". This name will be used
to reference the new table in the CDM.
- numberCohorts
An integer specifying the number of different cohorts
to create within the table. Defaults to 1. This parameter allows for the
creation of multiple cohorts, each with a unique identifier.
- cohortName
A character vector specifying the names of the cohorts to
be created. If not provided, default names based on a sequence
(e.g., "cohort_1", "cohort_2", ...) will be generated. The length of this
vector must match the value of `numberCohorts`. This parameter provides
meaningful names for each cohort.
- recordPerson
An integer or a vector of integers specifying the
expected number of records per person within each cohort. If a single
integer is provided, it applies to all cohorts. If a vector is provided, its
length must match the value of `numberCohorts`. This parameter helps
simulate the frequency of observations for individuals in each cohort,
allowing for realistic variability in data.
- seed
An integer specifying the random seed for reproducibility of the
generated data. Setting a seed ensures that the same synthetic data can be
generated again, facilitating consistent results across different runs.