gibbscap2: Gibbs sampling for the Arnason-Schwarz capture-recapture model
Description
In the Arnason-Schwarz capture-recapture model (see Chapter 5), individual histories
are observed and missing steps can be inferred upon. For the dataset eurodip,
the moves between regions can be reconstituted. This is the first instance
of a hidden Markov model met in the book.
Usage
gibbscap2(nsimu, z)
Value
p
Gibbs sample of capture probabilities across time
phi
Gibbs sample of survival probabilities across time and locations
psi
Gibbs sample of interstata movement probabilities across time and locations
late
Gibbs averages of completed histories
Arguments
nsimu
numbed of simulation steps in the Gibbs sampler
z
data, capture history of each individual, with 0 coding non-capture