Learn R Programming

bayess (version 1.6)

pdarroch: Posterior probabilities for the Darroch model

Description

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).

Usage

pdarroch(n1, n2, m2)

Value

numerical value of the posterior expectation

Arguments

n1

size of the first capture experiment

n2

size of the second capture experiment

m2

number of recaptured individuals

Details

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\).

See Also

pcapture

Examples

Run this code
for (i in 6:16) print(round(sum(pdarroch(22,43,i)*1:400)))

Run the code above in your browser using DataLab