Usage
crwN2ll(theta, fixPar, y, x, loctype, delta, a1.y, a1.x, P1.x, P1.y, lonAdj,
mov.mf, err.mfX, err.mfY, stop.mf, n.errX, n.errY, n.mov, stopMod, driftMod,
prior, need.hess, constr = list(lower = -Inf, upper = Inf))
Arguments
fixPar
values of parameters held fixed (contains NA
for
theta
values).
loctype
vector with 1 for unobserved locations, and 0 for observed locations.
delta
time difference to next location.
a1.y
initial state value for latitude.
a1.x
initial state value for longitude.
P1.x
intial state covariance matrix for latitude.
P1.y
inital state covariance matrix for longitude.
lonAdj
= 1/cos(y*pi/180) as described in Johnson et al. (2008) for
polar coords. = 1 for non-polar coords.
mov.mf
Movement covariate data.
err.mfX
longitude error covariate data.
err.mfY
latitude error covariate data.
stop.mf
stopping covariate.
n.errX
number or longitude error parameters.
n.errY
number of latitude error parameters.
n.mov
number or movement parameters.
stopMod
Logical. indicates wheteher a stop model is specified.
driftMod
Logical. inicates whether a drift model is specified.
prior
Function of theta that returns the log-density of the prior
need.hess
Whether or not the Hessian will need to be calculated from
this call
constr
Named list giving the parameter constraints