Learn R Programming

hSDM R Package

hSDM is an R package for estimating parameters of hierarchical Bayesian species distribution models. Such models allow interpreting the observations (occurrence and abundance of a species) as a result of several hierarchical processes including ecological processes (habitat suitability, spatial dependence and anthropogenic disturbance) and observation processes (species detectability). Hierarchical species distribution models are essential for accurately characterizing the environmental response of species, predicting their probability of occurrence, and assessing uncertainty in the model results.

Installation

Install the latest stable version of hSDM from CRAN with:

install.packages("hSDM")

Or install the development version of hSDM from GitHub with:

devtools::install_github("ghislainv/hSDM")

Vignettes and manual

In the wild

Contributing

The hSDM R package is Open Source and released under the GNU GPL version 3 license. Anybody who is interested can contribute to the package development following our Contributing guide. Every contributor must agree to follow the project's Code of conduct.

References

Diez J. M. and Pulliam H. R. 2007. Hierarchical analysis of species distributions and abundance across environmental gradients. Ecology. 88(12): 3144-3152.

Gelfand A. E., Silander J. A., Wu S. S., Latimer A., Lewis P. O., Rebelo A. G. and Holder M. 2006. Explaining species distribution patterns through hierarchical modeling. Bayesian Analysis. 1(1): 41-92.

Latimer, A. M.; Wu, S. S.; Gelfand, A. E. & Silander, J. A. 2006. Building statistical models to analyze species distributions. Ecological Applications. 16(1): 33-50.

MacKenzie, D. I.; Nichols, J. D.; Lachman, G. B.; Droege, S.; Andrew Royle, J. and Langtimm, C. A. 2002. Estimating site occupancy rates when detection probabilities are less than one. Ecology. 83: 2248-2255.

Royle, J. A. 2004. N-mixture models for estimating population size from spatially replicated counts. Biometrics. 60: 108-115.

Copy Link

Version

Install

install.packages('hSDM')

Monthly Downloads

222

Version

1.4.4

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Ghislain Vieilledent

Last Published

September 6th, 2023

Functions in hSDM (1.4.4)

altitude

Virtual altitudinal data
frogs

Counts of the number of frogs in a water body
hSDM.Nmixture.iCAR

N-mixture model with CAR process
cfr.env

Environmental data for South Africa's Cap Floristic Region
hSDM.ZIB

ZIB (Zero-Inflated Binomial) model
hSDM.Nmixture.K

N-mixture model with K, the maximal theoretical abundance
hSDM.Nmixture

N-mixture model
data.Kery2010

Count data for the Willow tit (from Kéry and Royle 2010)
hSDM-package

hierarchical Bayesian species distribution models
datacells.Latimer2006

Data of presence-absence (from Latimer et al. 2006)
hSDM.ZIP.iCAR.alteration

ZIP (Zero-Inflated Poisson) model with CAR process taking into account site alteration
hSDM.binomial.iCAR

Binomial logistic regression model with CAR process
hSDM.ZIP

ZIP (Zero-Inflated Poisson) model
hSDM.binomial

Binomial logistic regression model
hSDM.poisson

Poisson log regression model
hSDM.poisson.iCAR

Poisson log regression model with CAR process
hSDM.siteocc.iCAR

Site-occupancy model with CAR process
logit

Generalized logit and inverse logit function
hSDM.ZIB.iCAR

ZIB (Zero-Inflated Binomial) model with CAR process
hSDM.ZIP.iCAR

ZIP (Zero-Inflated Poisson) model with CAR process
hSDM.siteocc

Site occupancy model
hSDM.ZIB.iCAR.alteration

ZIB (Zero-Inflated Binomial) model with CAR process taking into account site alteration
punc10

Occurrence data for Protea punctata Meisn. in the Cap Floristic Region
neighbors.Latimer2006

Neighborhood data (from Latimer et al. 2006)
predict.hSDM

Predict method for models fitted with hSDM