Returns a vector of random draws from the Bailey 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) from a binomial distribution, and then uses these to
compute a vector of draws from the estimator.
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.