This function is designed for primary use within the crwMLE
model fitting function. But, it can be accessed for advanced R
and
crawl
users. Uses the state-space parameterization and Kalman filter
method presented in Johnson et al. (2008).
crwN2ll(
theta,
fixPar,
y,
noObs,
delta,
mov.mf,
err.mfX,
err.mfY,
rho = NULL,
activity = NULL,
n.errX,
n.errY,
n.mov,
driftMod,
prior,
need.hess,
constr = list(lower = -Inf, upper = Inf)
)
-2 * log-likelihood value for specified CTCRW model.
parameter values.
values of parameters held fixed (contains NA
for
theta
values).
N by 2 matrix of coordinates with the longitude coordinate in the first column.
vector with 1 for unobserved locations, and 0 for observed locations.
time difference to next location.
Movement covariate data.
longitude error covariate data.
latitude error covariate data.
A vector of known correlation coefficients for the error model, typically used for modern ARGOS data.
Stopping covariate (= 0 if animal is not moving).
number or longitude error parameters.
number of latitude error parameters.
number or movement parameters.
Logical. indicates whether a drift model is specified.
Function of theta that returns the log-density of the prior
Whether or not the Hessian will need to be calculated from this call
Named list giving the parameter constraints
Devin S. Johnson
This function calls compiled C++ code which can be viewed in the
src
directory of the crawl source package.
Johnson, D., J. London, M. -A. Lea, and J. Durban. 2008. Continuous-time model for animal telemetry data. Ecology 89:1208-1215.
crwMLE