Clark Allan E, Altwegg Res
Department of Statistical Sciences University of Cape Town Cape Town South Africa.
Center for Statistics in Ecology, Environment and Conservation (SEEC) University of Cape Town Rondebosch South Africa.
Ecol Evol. 2019 Feb 5;9(2):756-768. doi: 10.1002/ece3.4850. eCollection 2019 Jan.
Occupancy models (, 2002; 83: 2248) were developed to infer the probability that a species under investigation occupies a site. Bayesian analysis of these models can be undertaken using statistical packages such as , , , and more recently , however, since these packages were not developed specifically to fit occupancy models, one often experiences long run times when undertaking an analysis. Bayesian spatial single-season occupancy models can also be fit using the R package . The approach assumes that the detection and occupancy regression effects are modeled using probit link functions. The use of the logistic link function, however, is algebraically more tractable and allows one to easily interpret the coefficient effects of an estimated model by using odds ratios, which is not easily done for a probit link function for models that do not include spatial random effects. We develop a Gibbs sampler to obtain posterior samples from the posterior distribution of the parameters of various occupancy models (nonspatial and spatial) when logit link functions are used to model the regression effects of the detection and occupancy processes. We apply our methods to data extracted from the 2nd Southern African Bird Atlas Project to produce a species distribution map of the Cape weaver () and helmeted guineafowl () for South Africa. We found that the Gibbs sampling algorithm developed produces posterior samples that are identical to those obtained when using and and that in certain cases the posterior chains mix much faster than those obtained when using , , and . Our algorithms are implemented in the R package, . The software is freely available and stored on GitHub (https://github.com/AllanClark/Rcppocc).
占有率模型(,2002;83:2248)被开发用于推断被调查物种占据某一地点的概率。这些模型的贝叶斯分析可以使用诸如、、、以及最近的等统计软件包来进行,然而,由于这些软件包并非专门为拟合占有率模型而开发,在进行分析时常常会遇到运行时间长的问题。贝叶斯空间单季占有率模型也可以使用R软件包来拟合。该方法假设检测和占有率回归效应使用概率单位链接函数进行建模。然而,逻辑链接函数在代数上更易于处理,并且通过使用优势比能够让人轻松解释估计模型的系数效应,而对于不包括空间随机效应的模型,概率单位链接函数则不容易做到这一点。当使用逻辑链接函数对检测和占有率过程的回归效应进行建模时,我们开发了一种吉布斯采样器,以从各种占有率模型(非空间和空间)参数的后验分布中获取后验样本。我们将我们的方法应用于从第二次南部非洲鸟类图鉴项目中提取的数据,以生成南非织布鸟()和头盔珠鸡()的物种分布图。我们发现,所开发的吉布斯采样算法产生的后验样本与使用和时获得的样本相同,并且在某些情况下,后验链的混合速度比使用、和时获得的后验链快得多。我们的算法在R软件包中实现。该软件可免费获取并存储在GitHub(https://github.com/AllanClark/Rcppocc)上。