pdarroch: Posterior probabilities for the Darroch model

View source: R/pdarroch.R

pdarrochR Documentation

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)

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 n1 and n2.

Value

numerical value of the posterior expectation

See Also

pcapture

Examples

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

bayess documentation built on Aug. 11, 2022, 5:07 p.m.

Related to pdarroch in bayess...