Description Usage Arguments Value Authors References Examples

Generation of random sample datasets for profile regression.

1 | ```
generateSampleDataFile(clusterSummary, pQuantile=0.05)
``` |

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

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

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]>

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

1 2 3 4 | ```
# generation of data for clustering
generateDataList <- clusSummaryBernoulliDiscrete()
inputs <- generateSampleDataFile(generateDataList)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.