generateSampleDataFile: Generate sample data files for profile regression

Description Usage Arguments Value Authors References Examples

View source: R/generateData.R

Description

Generation of random sample datasets for profile regression.

Usage

1
generateSampleDataFile(clusterSummary, pQuantile=0.05)

Arguments

clusterSummary

A vector of strings of the covariate names as by the column names in the data argument.

pQuantile

pQuantile is the quantile parameter of the Asymmetric Laplace Distribution used to generate data to test the model for the quantiles.

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 <[email protected]>

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/.

Examples

1
2
3
4
# generation of data for clustering

generateDataList <- clusSummaryBernoulliDiscrete()
inputs <- generateSampleDataFile(generateDataList)

PReMiuM documentation built on Sept. 26, 2018, 5:04 p.m.