ranefLevels: Extract the levels of factors used for random effects in...

View source: R/MCMCglmm_tidiers.R

ranefLevelsR Documentation

Extract the levels of factors used for random effects in MCMCglmm objects

Description

Extract the levels of factors used for random effects in MCMCglmm objects

Usage

ranefLevels(object, data, ...)

Arguments

object

An MCMCglmm model object

data

The dataset used for the model

...

Not currently used

See Also

paramNamesMCMCglmm, ranef.MCMCglmm

Examples

## Not run: 
  # a simple MCMCglmm model
  data(PlodiaPO)
  m <- MCMCglmm(PO ~ 1, random = ~ FSfamily, data = PlodiaPO, verbose=FALSE)

  # extract the random effects levels
  ranefLevels(m, PlodiaPO)

## End(Not run)

bbolker/broom.mixed documentation built on Jan. 13, 2024, 10:55 p.m.