It calculates fitted profiles in the (multivariate) GLMM with a normal mixture in the random effects distribution based on selected posterior summary statistic of the model parameters.
# S3 method for GLMM_MCMC
fitted(object, x, z,
statistic=c("median", "mean", "Q1", "Q3", "2.5%", "97.5%"),
overall=FALSE, glmer=TRUE, nAGQ=100, ...)
A list (one component for each of multivariate responses from the
model) with fitted values calculated using the x
and z
matrices. If overall
is FALSE
, these are then matrices
with one column for each mixture component.
object of class GLMM_MCMC
.
matrix or list of matrices (in the case of multiple responses) for “fixed effects” part of the model used in the calculation of fitted values.
matrix or list of matrices (in the case of multiple responses) for “random effects” part of the model used in the calculation of fitted values.
character which specifies the posterior summary statistic to be used to calculate fitted profiles. Default is the posterior median. It applies only to the overall fit.
logical. If TRUE
, fitted profiles based on posterior
mean/median/Q1/Q3/2.5%/97.5% of the model parameters are computed.
If FALSE
, fitted profiles based on posterior means
given mixture component are calculated. Note that this depends on
used re-labelling of the mixture components and hence might be
misleading if re-labelling is not succesfull!
a logical value. If TRUE
, the real marginal means
are calculated using Gaussian quadrature.
number of quadrature points used when glmer
is
TRUE
.
possibly extra arguments. Nothing useful at this moment.
Arnošt Komárek arnost.komarek@mff.cuni.cz
GLMM_MCMC
.