Learn R Programming

mixAK (version 2.2)

fitted.GLMM_MCMC: Fitted profiles in the GLMM model

Description

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.

Usage

## S3 method for class 'GLMM_MCMC':
fitted(object, x, z,
  statistic=c("median", "mean", "Q1", "Q3", "2.5\%", "97.5\%"),
  overall=FALSE, ...)

Arguments

object
object of class GLMM_MCMC.
x
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.
z
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.
statistic
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.
overall
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. N
...
possibly extra arguments. Nothing useful at this moment.

Value

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

See Also

GLMM_MCMC.

Examples

Run this code
### WILL BE ADDED.

Run the code above in your browser using DataLab