gibbscap2 | R Documentation |
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.
gibbscap2(nsimu, z)
nsimu |
numbed of simulation steps in the Gibbs sampler |
z |
data, capture history of each individual, with |
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 |
data(eurodip)
res=gibbscap2(10,eurodip[1:100,])
plot(res$p,type="l",col="steelblue3",xlab="iterations",ylab="p")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.