Returns a vector of random draws from the stratified estimator in a
mark-recapture experiment, given values of the true abundance and the
sample size in both events. The function first simulates a vector of
recaptures (m2) for each stratum, and then uses these to
compute a vector of draws from the estimator.
It may prove useful to investigate the behavior of the stratified estimator under relevant scenarios.
If capture probabilities (p1
and/or p2
) are specified instead of sample size(s), the sample size(s) will first be drawn from a binomial distribution, then the number of recaptures. If both sample size and capture probability are specified for a given sampling event, only the sample size will be used.