Learn R Programming

moveHMM (version 1.0)

nLogLike_rcpp: Negative log-likelihood

Description

Computation of the negative log-likelihood (forward algorithm - written in C++)

Usage

nLogLike_rcpp(nbStates, beta, covs, data, stepDist, angleDist, stepPar,
  anglePar, delta, aInd, zeroInflation = FALSE, stationary = FALSE)

Arguments

nbStates
Number of states
beta
Matrix of regression coefficients for the transition probabilities
covs
Covariates
data
A moveData object of the observations
stepDist
The name of the step length distribution
angleDist
The name of the turning angle distribution
stepPar
State-dependent parameters of the step length distribution
anglePar
State-dependent parameters of the turning angle distribution
delta
Stationary distribution
aInd
Vector of indices of the rows at which the data switches to another animal
zeroInflation
true if zero-inflation is included in the step length distribution, false otherwise.
stationary
false if there are covariates. If true, the initial distribution is considered equal to the stationary distribution. Default: false.

Value

  • Negative log-likelihood