move.HMM.mllk: Compute negative log likelihood of HMM

Description Usage Arguments Value

View source: R/move.HMM.mllk.R

Description

This function, modified from Langrock et al. (2012), computes the negative log likelihood of the hidden Markov model.

Usage

1
2
  move.HMM.mllk(parvect, obs, PDFs, skeleton,
    inv.transforms, nstates, useRcpp = FALSE)

Arguments

parvect

The vector of parameters to be estimated

obs

A n x ndist matrix of data. If ndist=1, obs must be a n x 1 matrix.

PDFs

A list of PDFs for the ndist distributions.

skeleton

A list with the original parameter structure used to reassemble parvect

inv.transforms

A list of inverse transformations used to transform parvect back to the original scale

nstates

Number of hidden states

useRcpp

Logical indicating whether or not to use Rcpp.

Value

The negative log likelihood of the hidden markov model.


benaug/move.HMM documentation built on Jan. 23, 2022, 4:29 a.m.