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
yModel
The outcome model according to which the data has been generated.
xModel
The covariate model according to which the data has been generated.
inputData
The data.frame that contains the data.
covNames
The names of the covariates.
fixedEffectNames
The names of the fixed effects.
uCAR
The spatial gaussian effect. It is sample into the intrinsic autoregressive model with precision TauCAR under the constraint that the sum of term is null. Only used if includeCAR is TRUE.
TauCAR
The precision of the spatial CAR effect. Only used if includeCAR is TRUE.
Permutation
A vector of size nSubject given the cluster name of each subject. When spatial CAR is added to the model, for preventing potential identifiability problems, the clusters are randomly distributed within the all subjects. Only used if includeCAR is TRUE.
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 Aurore J. Lavigne, Department of Epidemiology and Biostatistics, Imperial College London, UK Maintainer: Silvia Liverani
References
Silvia Liverani, David I. Hastie, Lamiae Azizi, Michail Papathomas, Sylvia Richardson (2015). PReMiuM: An R Package for Profile Regression Mixture Models Using Dirichlet Processes. Journal of Statistical Software, 64(7), 1-30. URL http://www.jstatsoft.org/v64/i07/.