Learn R Programming

growcurves (version 0.2.4.1)

lgmPost: Run a Bayesian mixed effects model for by-subject random effects with an independent Gaussian prior

Description

An internal function to dpgrow

Usage

lgmPost(y, X, Z, subjects, niter, nburn, nthin)

Arguments

y
An N x 1 response (of subject-measure cases)
X
Fixed effects design matrix
Z
Random effects design matrix. Assumed grouped by subjects
subjects
An N x 1 set of subject identifiers
niter
The number of MCMC iterations
nburn
The number of MCMC burn-in iterations to discard
nthin
The step increment of MCMC samples to return The rate parameter is set of 1.

Value

res A list object containing MCMC runs for all model parameters.

See Also

dpgrow