Computation of the negative log-likelihood (forward algorithm - written in C++)
nLogLike_rcpp(
nbStates,
beta,
covs,
data,
stepDist,
angleDist,
stepPar,
anglePar,
delta,
aInd,
zeroInflation,
stationary,
knownStates
)Negative log-likelihood
Number of states
Matrix of regression coefficients for the transition probabilities
Covariates
A moveData object of the observations
The name of the step length distribution
The name of the turning angle distribution
State-dependent parameters of the step length distribution
State-dependent parameters of the turning angle distribution
Stationary distribution
Vector of indices of the rows at which the data switches to another animal
true if zero-inflation is included in the step length distribution,
false otherwise.
false if there are covariates. If true, the initial distribution
is considered equal to the stationary distribution.
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.