powered by
simulateplpData creates a plpData object with simulated data.
simulateplpData
simulatePlpData(plpDataSimulationProfile, n = 10000)
An object of type plpData.
plpData
An object of type plpDataSimulationProfile as generated using the createplpDataSimulationProfile function.
plpDataSimulationProfile
createplpDataSimulationProfile
The size of the population to be generated.
This function generates simulated data that is in many ways similar to the original data on which the simulation profile is based.
# first load the simulation profile to use data("simulationProfile") # then generate the simulated data plpData <- simulatePlpData(simulationProfile, n = 100) nrow(plpData$cohorts)
Run the code above in your browser using DataLab