Creates a CohortMethodData object with simulated data.

simulateCohortMethodData(profile, n = 10000)

Arguments

profile

An object of type CohortMethodDataSimulationProfile as generated using the createCohortMethodDataSimulationProfile() function.

n

The size of the population to be generated.

Value

An object of type CohortMethodData.

Details

This function generates simulated data that is in many ways similar to the original data on which the simulation profile is based. The contains same outcome, comparator, and outcome concept IDs, and the covariates and their 1st order statistics should be comparable.