Description Usage Arguments Value Author(s) References Examples
This function calculates the expected number of ticks on an average-sized roe deer fawn of a given age in average environmental conditions, at various ages, as predicted by an infection model.
1 | predictEN(mcmcList, TicksData, TicksConst)
|
mcmcList |
An object of class |
TicksData |
The list containing the data passed to |
TicksConst |
The list containing the constants passed to |
A list containing the following elements:
age |
a numeric vector giving the ages, from 1 to 8 days, at which the expected number is calculated |
EN |
a matrix with R rows (corresponding to the R MCMC iterations) and N columns (corresponding to the N values of age for which the expected number is calculated) giving the expected number of ticks. |
Clement Calenge clement.calenge@ofb.gouv.fr
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).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
en <- predictEN(resultsModel$samples, TicksData, TicksConst)
lam <- en$EN
lr <- range(unlist(lam))
age <- en$age
plot(age, lam[1,], ty="n", ylim=lr, xlab="Age (days)", ylab="Mean number of ticks")
tmp <- lapply(1:nrow(lam), function(i) lines(age, lam[i,], col=rgb(0.1,0.1,0.1, 0.02)))
mo <- apply(lam,2,mean)
lines(age, mo, lwd=5)
lines(age, mo, lwd=3, col="yellow")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.