crwMLE(mov.model = ~1, err.model = NULL, stop.model = NULL,
drift.model = FALSE, data, coord = c("x", "y"), polar.coord, Time.name,
initial.state, theta, fixPar, method = "L-BFGS-B", control = NULL,
constr = list(lower = -Inf, upper = Inf), prior = NULL,
need.hess = TRUE, initialSANN = NULL, attempts = 1)polar.coord and
coord (and data.optim.optim.lower and upper that
are vectors the same length as theta giving the box constraints for the
parametersoptim when simulated
annealing is used for obtaining start values. See detailscrwMLE for model
fittingoptim during parameter optimizationmov.model) specifies how the movement parameters
should vary over time. This is a function of specified, time-indexed,
covariates. The movement parameters (sigma for velocity variation and beta
for velocity autocorrelation) are both modeled with a log link as par =
exp(eta), where eta is the linear predictor based on the covariates. The
err.model specification is a list of 2 such models, one for
drift.model is set to
TRUE, then, 2 additional parameters are estimated for the drift
process, a drift variance and a beta multiplier. If polar.coord=TRUE
then the ad-hoc logitude correction factor described by Johnson et al.
(2008) (Ecology 89:1208-1215) is used to adjust the variance scale for the
longitude mdoel.The inital.state is a list with the following elemets (with the exact
names):
a1.y A vector with initial state values for the
P1.y Covarince matrix for the state at time 1 (measure of uncertainty
for your inital state) a1.y,
a1.x Same as a1.y, but in the
P1.x Same as P1.y, but in the
theta and fixPar are vectors with the appropriate number or
parameters. theta contains only those paraemters which are to be
estimated, while fixPar contains all parameter values with NA
for parameters which are to be estimated.
The data set specified by data must contain a numeric or POSIXct column which is
used as the time index for analysis. The column name is specified by the
Time.name argument. If a POSIXct column is used it is internally converted to a
numeric vector with units of hours. The spacetime package supports an
STIDF object that contains slots for both spatial and time series data types. If
data is of class STIDF then the spatial and temporal information are
automatically extracted and polar.coord, Time.name and coord are
not required. If your data are not compatible with these data structures, it is better
to convert it yourself prior to analysis with crawl. Also, for stopping models, the
stopping covariate must be between 0 and 1 inclusive, with 1 representing complete stop
of the animal (no true movement, however, location error can still occur) and 0
represent unhindered movement. The coordinate location should have NA where no
location is recorded, but there is a change in the movment covariates.
The CTCRW models can be difficult to provide good initial values for
optimization. If initialSANN is specified then simulated annealing is
used first to obtain starting values for the specified optimaization method.
If simulated annealing is used first, then the returned init list of
the crwFit object will be a list with the results of the simulated annealing
optimization.