extractEffects: Internal function to extract the fixed or random effects from...

.extractEffectsR Documentation

Internal function to extract the fixed or random effects from an MCMCglmm object

Description

Extracts the fixed or random effects portions from an MCMCglmm object. Note for the random, these are the estimates themselves, not the variability in the estimates. The use options let you get either just the posterior mean or all the posterior samples.

Usage

.extractEffects(
  object,
  use = c("all", "mean"),
  which = c("fixed", "random"),
  ...
)

Arguments

object

An MCMCglmm object

use

A character string indicating whether to return “all” the posterior samples (the default) or only the “mean” of them.

which

A character string indicating whether to return the “fixed” (the default) or “random” effects.

...

Not currently used.

Value

A matrix of the posterior samples or means for the fixed or random effects.

See Also

fixef.MCMCglmm, ranef.MCMCglmm


broom.mixed documentation built on Oct. 16, 2024, 1:06 a.m.