Generate example subset of the OMOP CDM for estimating incidence and prevalence
mockIncidencePrevalence.Rd
Usage
mockIncidencePrevalence(
personTable = NULL,
observationPeriodTable = NULL,
targetCohortTable = NULL,
outcomeTable = NULL,
sampleSize = 1,
outPre = 1,
seed = 444,
earliestDateOfBirth = NULL,
latestDateOfBirth = NULL,
earliestObservationStartDate = as.Date("1900-01-01"),
latestObservationStartDate = as.Date("2010-01-01"),
minDaysToObservationEnd = 1,
maxDaysToObservationEnd = 4380,
minOutcomeDays = 1,
maxOutcomeDays = 10,
maxOutcomes = 1
)
mockIncidencePrevalenceRef(
personTable = NULL,
observationPeriodTable = NULL,
targetCohortTable = NULL,
outcomeTable = NULL,
sampleSize = 1,
outPre = 1,
seed = 444,
earliestDateOfBirth = NULL,
latestDateOfBirth = NULL,
earliestObservationStartDate = as.Date("1900-01-01"),
latestObservationStartDate = as.Date("2010-01-01"),
minDaysToObservationEnd = 1,
maxDaysToObservationEnd = 4380,
minOutcomeDays = 1,
maxOutcomeDays = 10,
maxOutcomes = 1
)
Arguments
- personTable
A tibble in the format of the person table.
- observationPeriodTable
A tibble in the format of the observation period table.
- targetCohortTable
A tibble in the format of a cohort table which can be used for stratification
- outcomeTable
A tibble in the format of a cohort table which can be used for outcomes
- sampleSize
The number of unique patients.
- outPre
The fraction of patients with an event.
- seed
The seed for simulating the data set. Use the same seed to get same data set.
- earliestDateOfBirth
The earliest date of birth of a patient in person table.
- latestDateOfBirth
The latest date of birth of a patient in person table.
- earliestObservationStartDate
The earliest observation start date for patient format.
- latestObservationStartDate
The latest observation start date for patient format.
- minDaysToObservationEnd
The minimum number of days of the observational integer.
- maxDaysToObservationEnd
The maximum number of days of the observation period integer.
- minOutcomeDays
The minimum number of days of the outcome period default set to 1.
- maxOutcomeDays
The maximum number of days of the outcome period default set to 10.
- maxOutcomes
The maximum possible number of outcomes per person can have default set to 1.