Package: ubms 1.2.7

Ken Kellner

ubms: Bayesian Models for Data from Unmarked Animals using 'Stan'

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) <doi:10.18637/jss.v076.i01>; Fiske and Chandler (2011) <doi:10.18637/jss.v043.i10>.

Authors:Ken Kellner [cre, aut]

ubms_1.2.7.tar.gz
ubms_1.2.7.tar.gz(r-4.5-noble)ubms_1.2.7.tar.gz(r-4.4-noble)
ubms.pdf |ubms.html
ubms/json (API)
NEWS

# Install 'ubms' in R:
install.packages('ubms', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/biodiverse/ubms/issues

Pkgdown site:https://biodiverse.github.io

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3

openblascpp

3.45 score 70 scripts 349 downloads 41 exports 65 dependencies

Last updated 3 months agofrom:eea0bce705. Checks:OK: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKDec 01 2024
R-4.5-linux-x86_64OKDec 01 2024

Exports:cauchycoefextractextract_log_likfitListgammaget_elapsed_timeget_stancodegetYgofkfoldlaplacelogisticloomodSelnormalnsamplesplot_effectsplot_marginalplot_posteriorsplot_residualsplot_spatialposterior_linpredposterior_predictpredictprojectedranefRSRstan_colextstan_distsampstan_multinomPoisstan_occustan_occuRNstan_occuTTDstan_pcountstudent_tsummarytraceplotturnoveruniformwaic

Dependencies:abindbackportsBHbootcallrcheckmateclicolorspacedescdistributionalfansifarvergenericsggplot2gluegridExtragtableinlineisobandlabelinglatticelifecyclelme4loomagrittrMASSMatrixmatrixStatsmgcvminqamunsellnlmenloptrnumDerivpbapplypillarpkgbuildpkgconfigposteriorprocessxpsQuickJSRR6rbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRcppParallelRdpackreformulasrlangRSpectrarstanrstantoolsscalesStanHeaderstensorAtibbleTMBunmarkedutf8vctrsviridisLitewithr

Comparing models fit in ubms and JAGS

Rendered fromJAGS-comparison.Rmdusingknitr::rmarkdownon Dec 01 2024.

Last update: 2022-11-10
Started: 2021-01-19

Overview of ubms

Rendered fromubms.Rmdusingknitr::rmarkdownon Dec 01 2024.

Last update: 2024-10-01
Started: 2021-01-19

Random effects in ubms

Rendered fromrandom-effects.Rmdusingknitr::rmarkdownon Dec 01 2024.

Last update: 2021-11-30
Started: 2021-01-19

Spatial Models in ubms

Rendered fromspatial-models.Rmdusingknitr::rmarkdownon Dec 01 2024.

Last update: 2024-10-01
Started: 2021-11-30

Readme and manuals

Help Manual

Help pageTopics
Extract a Submodel from a ubmsFit Model[,ubmsFit,character,missing,missing-method
Extract a ubmsSubmodel From a ubmsSubmodelList Object[,ubmsSubmodelList,character,missing,missing-method
Extract Coefficient Values From a ubmsFit Modelcoef,ubmsFit-method
Extract Pointwise Log-likelihood From Modelextract_log_lik extract_log_lik,ubmsFit-method extract_log_lik,ubmsFitDistsamp-method
Extract Samples From a ubmsFit Modelextract,ubmsFit-method
Create a List of ubmsFit ModelsfitList fitList,list-method fitList,ubmsFit-method
Extract Fitted Valuesfitted,ubmsFit-method
Get Model Runtimeget_elapsed_time,ubmsFit-method
Get Stan Code From Modelget_stancode,ubmsFit-method
Extract y, the Response Variable, From a ubmsFit ModelgetY,ubmsFit-method
Check model goodness-of-fitgof gof,ubmsFitAbun-method gof,ubmsFitOccu-method plot,ubmsGOF,ANY-method
K-fold Cross-validation of a ubmsFit Modelkfold,ubmsFit-method
Leave-one-out Cross Validationloo,ubmsFit-method
Model Selection For a List of ubmsFit ModelsmodSel,ubmsFitList-method
Get Parameter Names From a ubmsFit Modelnames,ubmsFit-method
Get Names of Models in a ubmsFitListnames,ubmsFitList-method
Get number of Posterior Samples Stored in a ubmsFit Modelnsamples,ubmsFit-method
Plot Marginal Effects of Covariatesplot_effects plot_effects,ubmsFit-method plot_marginal plot_marginal,ubmsFit-method
Plot Posterior Distributionsplot_posteriors plot_posteriors,ubmsFit-method
Plot Model Residualsplot_residuals plot_residuals,ubmsFit-method
Plot A Map of the State Parameter Based on a Spatial ubms Modelplot_spatial
Plot Residuals For All Submodels in a ubmsFit Modelplot,ubmsFit,ANY-method
Posterior Distribution of the Linear Predictorposterior_linpred posterior_linpred,ubmsFit-method
Draw from the posterior predictive distributionposterior_predict posterior_predict,ubmsFit-method
Predict parameter values from a fitted modelpredict predict,ubmsFit-method
Prior distributionscauchy gamma laplace logistic normal priors student_t uniform
Projected Occupancy Trajectoriesprojected projected,ubmsFitColext-method
Extract Random Effectsranef ranef,ubmsFit-method
Extract Model Residualsresiduals,ubmsFit-method
Get Information for a Restricted Spatial Regression ModelRSR
Fit the MacKenzie et al. (2003) Dynamic Occupancy Modelstan_colext
Fit the Royle et al. (2004) Distance Sampling Modelstan_distsamp
Fit the Multinomial-Poisson Mixture Modelstan_multinomPois
Fit the MacKenzie et al. (2002) Occupancy Modelstan_occu
Fit the Occupancy Model of Royle and Nichols (2003)stan_occuRN
Fit Time-to-detection Occupancy Modelsstan_occuTTD
Fit the N-mixture model of Royle (2004)stan_pcount
Extract Summary Statistics from a ubmsFit Modelsummary,ubmsFit-method
Markov Chain Traceplotstraceplot,ubmsFit-method
Turnover Probabilityturnover turnover,ubmsFitColext-method
ubmsubms-package ubms
Extractors for ubmsFitList objects Extract parts of ubmsFitList objects.$,ubmsFitList-method ubmsFitList-extractors [,ubmsFitList,numeric,missing,missing-method [[,ubmsFitList,numeric,missing-method
Widely Applicable Information Criterion (WAIC)waic,ubmsFit-method