View source: R/sampleParameters.R
sampleParameters | R Documentation |
Generates parameters from models estimated with hlme
,
lcmm
, multlcmm
, Jointlcmm
or mpjlcmm
functions.
Parameters are randomly sampled from a Gaussian distribution using estimates
and corresponding variances of a model.
sampleParameters(x, cholesky = FALSE)
x |
an object of class |
cholesky |
optional logical indicating if cholesky parameters should be returned. Default to FALSE, the variance-covariance parameters of the random effects are returned. |
a named vector containing the sampled parameters.
Viviane Philipps
m <- hlme(Y ~ Time * X1, random = ~ Time, subject = 'ID', data = data_hlme)
sampleParameters(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.