powered by
Simulation of "removal" data from a multinomial-mixture model.
simMultMix(nsites = 100, nsurveys = 3, nyears = 4, lambda = 3, theta = 0.5, p = 0.3)
A list with the values of the input arguments and the following additional elements:
true local population size, vector length nsites
true number available for detection, vector length nsites
number detected, nsites x nyears x nsurveys
number detected as a matrix, nsites x (nyears*nsurveys)
number of sites.
number of replicate (secondary) samples
number of primary samples: years, seasons etc.
expected local population size.
availability, the proportion of the population available for detection.
detection probability.
Marc Kéry & Andy Royle, adapting code in documentation for gmultmix by Richard Chandler.
gmultmix
Chandler, R.B., Royle, J.A. & King. D.I. (2011) Inference about density and temporary emigration in unmarked populations. Ecology, 92, 1429-1435.
Kéry, M. & Royle, J.A. (2021) Applied Hierarchical Modeling in Ecology AHM2 - 2.7.1.
# Simulate a data set with the default arguments and look at the structure of the output: tmp <- simMultMix() str(tmp)
Run the code above in your browser using DataLab