buildV {MCMCglmm} | R Documentation |
Forms expected (co)variances for GLMMs fitted with MCMCglmm
Description
Forms the expected covariance structure of link-scale observations for GLMMs fitted with MCMCglmm
Usage
buildV(object, marginal=object$Random$formula, diag=TRUE, it=NULL, posterior="mean", ...)
Arguments
object |
an object of class |
marginal |
formula defining random effects to be maginalised |
diag |
logical; if |
it |
integer; optional, MCMC iteration on which covariance structure should be based |
posterior |
character; if |
... |
Further arguments to be passed |
Value
If diag=TRUE
an n by n covariance matrix. If diag=FALSE
and posterior!="all"
an 1 by n matrix of variances. If posterior=="all"
an nit by n matrix of variances (where nit is the number of saved MCMC iterations).
Author(s)
Jarrod Hadfield j.hadfield@ed.ac.uk