Skip to contents

mockPerson

Usage

mockPerson(
  cdm = mockCdmReference(),
  nPerson = 10,
  birthRange = as.Date(c("1950-01-01", "2000-12-31")),
  proportionFemale = 0.5,
  seed = 1
)

Arguments

cdm

Name of the cdm object

nPerson

number of mock person to create in person table

birthRange

birthday range of the person in person table

proportionFemale

proportion of person in the person table are female

seed

random seed

Value

A cdm reference with the mock person table

Examples

# \donttest{
library(omock)
cdm <- mockCdmReference() |>
  mockPerson(n = 100,
             birthRange = as.Date(c("1930-01-01", "2022-01-01"))
  )
# }