pdarroch {bayess} | R Documentation |
This function computes the posterior expectation of the population size for a two-stage Darroch capture-recapture experiment (Chapter 5) under a uniform prior on the range (0,400).
pdarroch(n1, n2, m2)
n1 |
size of the first capture experiment |
n2 |
size of the second capture experiment |
m2 |
number of recaptured individuals |
This model can be seen as a conditional version of the two-stage model when
conditioning on both sample sizes n_1
and n_2
.
numerical value of the posterior expectation
for (i in 6:16) print(round(sum(pdarroch(22,43,i)*1:400)))