fitOccModel: Fit a Multi-scale Occupancy Model

View source: R/fiteDNAoccModel.R

fitOccModelR Documentation

Fit a Multi-scale Occupancy Model

Description

This function is called by occModel – rather than directly by the user – and fits a multi-scale occupancy model using Bayesian methods (specifically, a Markov chain Monte Carlo (MCMC) algorithm).

Usage

fitOccModel(niter = 100, niterInterval = 10, y, K, X, W, V,
  siteEffectInW, colNamesOfX, colNamesOfW, colNamesOfV)

Arguments

niter

no. iterations of MCMC algorithm

niterInterval

no. iterations for reporting progress of MCMC algorithm

y

M x J matrix of numbers of detections per sample

K

M x J matrix of numbers of replicates per sample

X

matrix of regressors associated with model parameter beta

W

array of regressors associated with model parameter alpha

V

array of regressors associated with model parameter delta

siteEffectInW

logical indicator of whether model parameter alpha contains M elements (that is, one element per site)

colNamesOfX

vector of names of regressors in X

colNamesOfW

vector of names of regressors in W

colNamesOfV

vector of names of regressors in V


RobertDorazio/eDNAoccupancy documentation built on Sept. 5, 2023, 9:57 a.m.