paramNamesMCMCglmm: Extract the parameter names from an 'MCMCglmm' object

View source: R/MCMCglmm_tidiers.R

paramNamesMCMCglmmR Documentation

Extract the parameter names from an MCMCglmm object

Description

Simple function to extract the fixed and random effects parameter names from an MCMCglmm object.

Usage

paramNamesMCMCglmm(object, ...)

Arguments

object

An MCMCglmm object

...

not used

Value

A list with two elements:

fixed

A character vector of the fixed effects parameter names

random

A character vector of the random effects parameter names

See Also

fixef.MCMCglmm, ranef.MCMCglmm

Examples

## Not run: 
  # a simple MCMCglmm model
  if (require(MCMCglmm)) {
     data(PlodiaPO)
     m <- MCMCglmm(PO ~ 1, random = ~ FSfamily, data = PlodiaPO, verbose=FALSE, pr=TRUE)
  }
  # extract the parameter names
  paramNamesMCMCglmm(m)

## End(Not run)

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