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

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

Examples

if (FALSE) {
  # 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)
}