simulatePaperModel: Simulate Tick-Infection Datasets Using Fitted Models

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

View source: R/simulatePaperModel.R

Description

This function can be used to simulate one dataset per MCMC iteration using the final model describing the tick infection of roe deer fawns in the Trois-Fontaines forest.

Usage

1
simulatePaperModel(mcmcList, TicksData, TicksConst)

Arguments

mcmcList

An object of class mcmc.list containing the results of the fit of a model.

TicksData

The list containing the data passed to nimbleMCMC. WARNING: the function does not check that this list actually corresponds to the list passed to nimbleMCMC and trusts the user.

TicksConst

The list containing the constants passed to nimbleMCMC. WARNING: the function does not check that this list actually corresponds to the list passed to nimbleMCMC and trusts the user.

Value

A matrix with N rows (the N fawns of the dataset) and R columns (the R MCMC iterations) containing, for each MCMC iteration, a simulation of the tick-burden class (from 1 to three, see ?fticks) according to the fitted model.

Author(s)

Clement Calenge clement.calenge@ofb.gouv.fr

References

Bariod L., Said S., Calenge C., Chabot S., Badeaud V. \& Bourgoin G. in prep. Infection of Roe Deer Fawns by Ticks from 1992 to 2018 in the Trois-Fontaines Forest (France).

See Also

fticks for a description of the dataset used, and resultsModel for a description of the final models (and alternative models). See also the vignette of the package for an example of use.

Examples

1
## see vignette.

ClementCalenge/tickTF documentation built on Dec. 17, 2021, 2:06 p.m.