Learn R Programming

fHMM (version 0.3.0)

nLL_hmm: Negative log-likelihood of a HMM

Description

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

Usage

nLL_hmm(thetaUncon, observations, controls)

Arguments

thetaUncon

Vector of model parameters in format thetaUncon.

observations

A vector of observations.

controls

A list of controls.

Value

Numeric, negative log-likelihood value.