Creates a CohortMethodData object with simulated data.
simulateCohortMethodData(profile, n = 10000)
An object of type CohortMethodDataSimulationProfile
as generated using the
createCohortMethodDataSimulationProfile()
function.
The size of the population to be generated.
An object of type CohortMethodData.
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.