Extract Best Unbiased Predictors (BUPs) of latent variables such as occupancy or abundance from a unmarkedRanef object produced by the ranef function. Either the posterior mean or median can be requested.

# S4 method for class 'unmarkedRanef'
bup(object, stat = c("mean", "mode"), ...)

Arguments

object

A unmarkedRanef object, the output of a call to ranef.

stat

The statistic to calculate from the posterior, either mean or mode.

...

Other arguments, currently ignored

Value

A vector of length M for single-season models, where M is the number of sites. A matrix MxT for multi-season models, where T is the number of primary periods. Values in the vector or matrix are the BUPs (occupancy or abundance states).