R/getPredictErr.gllvm.R
getPredictErr.gllvm.Rd
Calculates the prediction errors for latent variables and random effects for gllvm model.
# S3 method for class 'gllvm'
getPredictErr(object, CMSEP = TRUE, cov = FALSE, ...)
an object of class 'gllvm'.
logical, if TRUE
conditional mean squared errors for predictions are calculated. If FALSE
, prediction errors are based on covariances of the variational distributions for method ="VA"
and method ="EVA"
.
if TRUE
, return as covariances/variances of predictions. Otherwise FALSE
(default) return as standard errors of predictions.
not used
Function returns following components:
prediction errors for latent variables
prediction errors for random row effects if included
Calculates conditional mean squared errors for predictions. If variational approximation is used, prediction errors can be based on covariances of the variational distributions, and therefore they do not take into account the uncertainty in the estimation of (fixed) parameters.