Learn R Programming

ubms (version 1.2.8)

Bayesian Models for Data from Unmarked Animals using 'Stan'

Description

Fit Bayesian hierarchical models of animal abundance and occurrence via the 'rstan' package, the R interface to the 'Stan' C++ library. Supported models include single-season occupancy, dynamic occupancy, and N-mixture abundance models. Covariates on model parameters are specified using a formula-based interface similar to package 'unmarked', while also allowing for estimation of random slope and intercept terms. References: Carpenter et al. (2017) ; Fiske and Chandler (2011) .

Copy Link

Version

Install

install.packages('ubms')

Monthly Downloads

457

Version

1.2.8

License

GPL (>= 3)

Maintainer

Ken Kellner

Last Published

September 29th, 2025

Functions in ubms (1.2.8)

modSel,ubmsFitList-method

Model Selection For a List of ubmsFit Models
names,ubmsFit-method

Get Parameter Names From a ubmsFit Model
stan_occu

Fit the MacKenzie et al. (2002) Occupancy Model
stan_distsamp

Fit the Royle et al. (2004) Distance Sampling Model
stan_colext

Fit the MacKenzie et al. (2003) Dynamic Occupancy Model
nsamples,ubmsFit-method

Get number of Posterior Samples Stored in a ubmsFit Model
stan_multinomPois

Fit the Multinomial-Poisson Mixture Model
ubms

ubms
ubmsFitList-extractors

Extractors for ubmsFitList objects Extract parts of ubmsFitList objects.
projected

Projected Occupancy Trajectories
priors

Prior distributions
stan_occuRN

Fit the Occupancy Model of Royle and Nichols (2003)
stan_occuTTD

Fit Time-to-detection Occupancy Models
ranef,ubmsFit-method

Extract Random Effects
names,ubmsFitList-method

Get Names of Models in a ubmsFitList
traceplot,ubmsFit-method

Markov Chain Traceplots
[,ubmsSubmodelList,character,missing,missing-method

Extract a ubmsSubmodel From a ubmsSubmodelList Object
residuals,ubmsFit-method

Extract Model Residuals
turnover

Turnover Probability
posterior_linpred,ubmsFit-method

Posterior Distribution of the Linear Predictor
[,ubmsFit,character,missing,missing-method

Extract a Submodel from a ubmsFit Model
stan_pcount

Fit the N-mixture model of Royle (2004)
waic,ubmsFit-method

Widely Applicable Information Criterion (WAIC)
summary,ubmsFit-method

Extract Summary Statistics from a ubmsFit Model
extract,ubmsFit-method

Extract Samples From a ubmsFit Model
coef,ubmsFit-method

Extract Coefficient Values From a ubmsFit Model
fitList,ubmsFit-method

Create a List of ubmsFit Models
RSR

Get Information for a Restricted Spatial Regression Model
get_stancode,ubmsFit-method

Get Stan Code From Model
getY,ubmsFit-method

Extract y, the Response Variable, From a ubmsFit Model
fitted,ubmsFit-method

Extract Fitted Values
extract_log_lik

Extract Pointwise Log-likelihood From Model
gof

Check model goodness-of-fit
get_elapsed_time,ubmsFit-method

Get Model Runtime
plot,ubmsFit,ANY-method

Plot Residuals For All Submodels in a ubmsFit Model
plot_effects,ubmsFit-method

Plot Marginal Effects of Covariates
kfold,ubmsFit-method

K-fold Cross-validation of a ubmsFit Model
loo,ubmsFit-method

Leave-one-out Cross Validation
plot_posteriors,ubmsFit-method

Plot Posterior Distributions
plot_residuals,ubmsFit-method

Plot Model Residuals
plot_spatial

Plot A Map of the State Parameter Based on a Spatial ubms Model
posterior_predict,ubmsFit-method

Draw from the posterior predictive distribution
predict,ubmsFit-method

Predict parameter values from a fitted model