Learn R Programming

fHMM (version 0.3.0)

nLL_hhmm: Negative log-likelihood of a HHMM

Description

Computes the negative log-likelihood of a hierarchical hidden Markov model.

Usage

nLL_hhmm(thetaUncon, observations, controls)

Arguments

thetaUncon

Vector of model parameters in format thetaUncon.

observations

A matrix of observations, coarse-scale observations in the first column and fine-scale observations in the corresponding row.

controls

A list of controls.

Value

Numeric, negative log-likelihood value.