Extract random effects from a ubmsFit model. Note that this function works like ranef for merMod objects from lme4, not like ranef for unmarkedFit objects. To get functionality similar to that of unmarkedFit, use posterior_predict.

# S4 method for ubmsFit
ranef(object, submodel, summary = FALSE, ...)

Arguments

object

A fitted model of class ubmsFit

submodel

The name of the submodel, as a character string, for which to generate the random effects

summary

If TRUE, calculate mean, SD, and 95 for each random effect term

...

Currently ignored

Value

If summary=FALSE, a list of random effect values; if

TRUE, a data frame with columns for random effect mean, SD, and 95