Computation of the negative log-likelihood (forward algorithm - written in C++)
nLogLike_rcpp(
nbStates,
covs,
data,
dataNames,
dist,
Par,
aInd,
zeroInflation,
oneInflation,
stationary,
knownStates,
betaRef,
mixtures
)
Negative log-likelihood
Number of states,
Covariates,
A momentuHMMData
object of the observations,
Character vector containing the names of the data streams,
Named list indicating the probability distributions of the data streams.
Named list containing the state-dependent parameters of the data streams, matrix of regression coefficients for the transition probabilities ('beta'), and initial distribution ('delta').
Vector of indices of the rows at which the data switches to another animal
Named list of logicals indicating whether the probability distributions of the data streams are zero-inflated.
Named list of logicals indicating whether the probability distributions of the data streams are one-inflated.
false
if there are time-varying covariates in formula
or any covariates in formulaDelta
. If true
, the initial distribution is considered
equal to the stationary distribution. Default: false
.
Vector of values of the state process which are known prior to fitting the model (if any). Default: NULL (states are not known). This should be a vector with length the number of rows of 'data'; each element should either be an integer (the value of the known states) or NA if the state is not known.
Indices of reference elements for t.p.m. multinomial logit link.
Number of mixtures for the state transition probabilities