instant.a | R Documentation |
Calculates the probability that an animal is available at an instant, for each of a set of m 2-state Markov model availability parameters passed to it and returns probabilities and their mean.
instant.a(hmm.pars, Et = NULL)
hmm.pars |
is a list with 2x2xm Markov model transition matrices (in which state 1 is UNavailable) in element $Pi (where m is number of availability parameter sets). |
Et |
is a 2xm matrix with expect times Unavailable (row 1) and Available (row 2). |
If Et is given, it is used and hmm.pars is ignored.
mclaren.a
, laake.a
, richard.a
Ea=c(10,12);Eu=c(20,22);seEa=c(2,3);seEu=c(4,6);covEt=c(2,3);pm=NULL
hmm.pars=make.hmm.pars.from.Et(Ea,Eu,seEa,seEu,covEt)
instant.a(hmm.pars)
instant.a(NULL,Et=matrix(c(Eu,Ea),ncol=2,byrow=TRUE))
instant.a(NULL,c(Eu[1],Ea[1]))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.