simulatePlpData {PatientLevelPrediction} | R Documentation |
Generate simulated data
Description
simulateplpData
creates a plpData object with simulated data.
Usage
simulatePlpData(plpDataSimulationProfile, n = 10000)
Arguments
plpDataSimulationProfile |
An object of type |
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.
Value
An object of type plpData
.
Examples
# first load the simulation profile to use
data("simulationProfile")
# then generate the simulated data
plpData <- simulatePlpData(simulationProfile, n = 100)
nrow(plpData$cohorts)
[Package PatientLevelPrediction version 6.4.1 Index]