simulateCohortMethodData: Generate simulated data

View source: R/Simulation.R

simulateCohortMethodDataR Documentation

Generate simulated data

Description

Creates a CohortMethodData object with simulated data.

Usage

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.

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.

Value

An object of type CohortMethodData.


OHDSI/CohortMethod documentation built on Oct. 9, 2024, 12:50 p.m.