Learn R Programming

lcmm (version 2.2.2)

sampleParameters: Sample models parameters

Description

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.

Usage

sampleParameters(x, cholesky = FALSE)

Value

a named vector containing the sampled parameters.

Arguments

x

an object of class hlme, lcmm, multlcmm, Jointlcmm, or mpjlcmm.

cholesky

optional logical indicating if cholesky parameters should be returned. Default to FALSE, the variance-covariance parameters of the random effects are returned.

Author

Viviane Philipps

Examples

Run this code
m <- hlme(Y ~ Time * X1, random = ~ Time, subject = 'ID', data = data_hlme)

sampleParameters(m)

Run the code above in your browser using DataLab