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.
Value
Numeric, negative log-likelihood value.