fitCatchEffort: Fit a Catch-Effort Model on Wild Boar Data

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/fitCatchEffort.R

Description

This function fits a catch-effort model as described in Vajas et al. (in prep).

Usage

1
fitCatchEffort(listData, n.chains = 4, thin = 10, n.iter = 1e+05, n.burnin = 5000)

Arguments

listData

a list formatted like bagArdeche or bagHerault

n.chains

Integer. the number of parallel chains for the MCMC (see the same argument in the function jags.model in the package rjags).

thin

Integer. Thinning interval for monitors (see the same argument in the function coda.samples in the package coda)

n.iter

Integer. Number of iterations monitor (see the same argument in the function coda.samples in the package coda).

n.burnin

Integer. Number of burnin iterations (thrown away before monitoring iterations).

Details

This function fits the catch-effort model to the list of hunting logs data, through "rjags" and "coda" packages.

Value

This function returns an object of class mcmc.list (this is the object returned by the function coda.sample used by fitCatchEffort to fit the model. See this function for more details on the format of such objects).

Author(s)

Pablo Vajas pablo.vajas@ofb.gouv.fr

References

Vajas, P., Calenge, C., Gamelon, M., Girard, F., Melac, O., Chandosne, C., Richard, E., Said, S., Baubet, Eric. in prep : Catch-effort model used as a management tool in exploited populations: wild boar as a case study.

See Also

coda.sample, jags.model, bagArdeche, bagHerault

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## Not run: 

## Loads the dataset containing the hunting bags in Ardeche
data(bagArdeche)

## fit the model (WARNING : can take several hours !)
mod <- fitCatchEffort(bagArdeche, n.chains = 4, thin = 1, n.iter = 1000,
                      n.burnin = 50)

## In the article, the values used were
## n.chains = 4
## thin = 10
## n.iter = 100000
## n.burnin = 1000



## End(Not run)

VajasPablo/catcheffortwb documentation built on May 26, 2020, 1:25 a.m.