resample.hmmpars | R Documentation |
Resamples a hidden Markov model (HMM) data from multiple observed availability time series (one per animal).
resample.hmmpars(
availhmm,
adat,
animals,
seed = NULL,
nperow = 10,
printprog = TRUE
)
availhmm |
list with availability HMM paramters, as for the |
adat |
list of availability data time series. The ith element of the list must be named
|
animals |
a vector of integers indicating which of the elements of |
seed |
random number seed (integer). |
nperow |
number of iterations printed on one row if printprog=TRUE. |
printprog |
if TRUE, prints progress through animals as it resamples. |
Simulates a new series of availability observations (0s and 1s) using functions dthmm
and simulate
from library HiddenMarkov
, then fits a HMM to these data
using function BaumWelch
from library HiddenMarkov
. Constructs a new
hmm.pars object from the fitted HMM parameters.
A list with the same format as the input availhmm
data(bowhead.hmm.pars)
data(bowhead.adat)
animals=1:8
resamp=resample.hmmpars(bowhead.hmm.pars,bowhead.adat,animals)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.