Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/fitCatchEffort.R
This function fits a catch-effort model as described in Vajas et al. (in prep).
1 | fitCatchEffort(listData, n.chains = 4, thin = 10, n.iter = 1e+05, n.burnin = 5000)
|
listData |
a list formatted like |
n.chains |
Integer. the number of parallel chains for the MCMC (see the same argument in
the function |
thin |
Integer. Thinning interval for monitors (see the same
argument in the function |
n.iter |
Integer. Number of iterations monitor (see the same argument in the
function |
n.burnin |
Integer. Number of burnin iterations (thrown away before monitoring iterations). |
This function fits the catch-effort model to the list of hunting logs data, through "rjags" and "coda" packages.
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).
Pablo Vajas pablo.vajas@ofb.gouv.fr
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.
coda.sample
, jags.model
,
bagArdeche
, bagHerault
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.