mockObservation {omock}R Documentation

Function to generate observation table

Description

Function to generate observation table

Usage

mockObservation(cdm, recordPerson = 1, seed = 1)

Arguments

cdm

the CDM reference into which the mock observation table 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() |>

mockObservation()

cdm$observation


[Package omock version 0.2.0 Index]