mockDeath {omock} | R Documentation |
Function to creat mock death table
Description
Function to creat mock death table
Usage
mockDeath(cdm, recordPerson = 1, seed = 1)
Arguments
cdm |
the CDM reference into which the synthetic cohort will be added |
recordPerson |
The expected number of records per person within each cohort. This can help simulate the frequency of observations for individuals in the cohort. |
seed |
A random seed to ensure reproducibility of the generated data. |
Value
A cdm reference with the mock tables
Examples
library(omock)
cdm <- mockCdmReference() |> mockPerson() |> mockObservationPeriod() |>
mockDeath()
cdm$death
[Package omock version 0.2.0 Index]