parametric.resample.hmmpars: Parameric resample availability HMM.

View source: R/bootstrap.R

parametric.resample.hmmparsR Documentation

Parameric resample availability HMM.

Description

Resamples a hidden Markov model (HMM) data from fitted variance-covariance matrices (one per animal).

Usage

parametric.resample.hmmpars(
  availhmm,
  animals,
  Pi.only = TRUE,
  seed = NULL,
  nperow = 10,
  printprog = TRUE
)

Arguments

availhmm

list with availability HMM paramters, as for the hmm.pars parameter of est.hmltm.

animals

a vector of integers indicating which of the elements of adat are to be resampled (e.g. animals=c(1,3,4) means the time series of animals 1, 3 and 4 only will be used).

Pi.only

If TRUE, resamples transition probability matrix (TPM) parameters but not state-dependent parameters (which are taken as fixed). The reason for this is that with availability datasets in which the state-dependent parameters are close to 1 and 0, the full variance-covariance matrix is often singular, although the TPM component is not.

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.

Details

Resamples HMM paramters assuming asymptotic normality of parameters. Constructs a new hmm.pars object from the fitted HMM parameters.

Value

A list with the same format as the input availhmm


david-borchers/hmltm documentation built on Oct. 29, 2023, 9:07 p.m.