generateSampleDataFile: Generate sample data files for profile regression
Description
Generation of random sample datasets for profile regression.
Usage
generateSampleDataFile(clusterSummary)
Arguments
clusterSummary
A vector of strings of the covariate names as by the column names in the data argument.
Value
The output of this function is a list with the following elements
yModelThe outcome model according to which the data has been generated.
xModelThe covariate model according to which the data has been generated.
inputDataThe data.frame that contains the data.
covNamesThe names of the covariates.
fixedEffectNamesThe names of the fixed effects.
Authors
David Hastie, Department of Epidemiology and Biostatistics, Imperial College London, UK
Silvia Liverani, Department of Epidemiology and Biostatistics, Imperial College London and MRC Biostatistics Unit, Cambridge, UK
Maintainer: Silvia Liverani
References
Liverani, S., Hastie, D. I., Azizi, L., Papathomas, M. and Richardson, S. (2013) PReMiuM: An R package for Profile Regression Mixture Models using Dirichlet Processes. Submitted. Available at http://uk.arxiv.org/abs/1303.2836