Estimate posterior distributions of site richness from a fitted community occupancy model using empirical Bayes methods. This function uses ranef and posteriorSamples internally.

# S4 method for class 'unmarkedFitOccuComm'
richness(object, nsims=100, posterior=FALSE)

Arguments

object

A unmarkedFitOccuComm object.

nsims

Number of posterior samples to generate.

posterior

Logical. If FALSE mean estimates for each site are returned; if TRUE the entire posterior for each site is returned.

Author

Ken Kellner contact@kenkellner.com