Simulates detection data for an amphibian species affected by the fungal pathogen Batrachochytrium dendrobatidis (Lips et al., 2006). Surveys are carried out on multiple occasions each year. Observers count frogs and record whether they were infected or not. Over time, individuals are subject to mortality and there may also be recruitment of new individuals into the population. Individuals transition between the two states: infected frogs may become uninfected (i.e., can shed the fungus) and vice versa. It also seems reasonable to expect that survival probability differs between the two states.
simFrogDisease(nsites = 100, nyears = 3, nsurveys = 3, alpha.lam = 3,
omega = c(0.9, 0.7), gamma = c(2,1), p = c(0.8, 0.8, 0.8),
recovery = 0.1, infection = 0.1)
A list with the values of the arguments and the following additional elements:
sites x intervals, number of noninfected frogs surviving
sites x intervals, number of infected frogs surviving
sites x intervals, number of noninfected frogs recruited
sites x intervals, number of infected frogs recruited
sites x intervals, number of infected frogs recovering
sites x intervals, number of noninfected frogs becoming infected
sites x years, number of noninfected frogs at each site
sites x years, number of infected frogs at each site
sites x years x surveys, number of noninfected frogs detected
sites x years x surveys, number of infected frogs detected
the number of sites surveyed.
the number of years of the study.
the number of surveys each year.
mean abundance per site in the first year.
vector length 2, state-specific survival, noninfected and infected.
vector length 2, state-specific recruitment, noninfected and infected.
vector length nyears
, probability of detection of individuals.
probability of recovery for an infected frog.
probability of infection for a noninfected frog.
Marc Kéry and Andy Royle
Kéry, M. & Royle, J.A. (2021) Applied Hierarchical Modeling in Ecology AHM2 - 2.9.1.
Lips, K.R., Brem, F., Brenes, R., Reeve, J.D., Alford, R.A., Voyles, J., et al., 2006. Emerging infectious disease and the loss of biodiversity in a Neotropical amphibian community. Proc. Natl. Acad. Sci. USA, 103, 3165-3170.
# Generate a simulated data set with default arguments and look at the structure:
tmp <- simFrogDisease()
str(tmp)
Run the code above in your browser using DataLab