Format track data for filtering
dat4jags(d, tstep = 1, tpar = tpar())a data frame of observations (see details)
the time step to predict to (in days)
generalised t-distribution parameters for ARGOS location classes. By
default dat4jags uses the parameters estimated in Jonsen et al (2005) Ecology 86:2874-2880
but users may specify other ARGOS error parameter values via the tpar function.
A list with components
idthe unique identifier for each dataset
ya 2 column matrix of the lon,lat observations
itau2a 2 column matrix of the ARGOS precision (1/scale) parameters
nua 2 column matrix of the ARGOS df parameters
idxa vector of interpolation indices
wsa vector of interpolation weights
tsthe times at which states are predicted (POSIXct,GMT)
obsthe input observed data frame
tstepthe time step specified in the fitSSM call
This is an internal function used by fit_ssm to format track
data for JAGS.
The input track is given as a dataframe where each row is an observed location and columns
individual animal identifier,
observation time (POSIXct,GMT),
ARGOS location class,
observed longitude,
observed latitude.
Location classes can include Z, F, and G; where the latter two
are used to designate fixed (known) locations (e.g. GPS locations)
and "generic" locations (e.g. geolocation data) where the user
supplies the error standard deviations, either via the
tpar function or as two extra columns in the input data.
From this dat4jags calculates interpolation indices idx and
weights ws such that if x is the matrix of predicted
states, the fitted locations are ws*x[idx+1,] +
(1-ws)*x[idx+2,].
Jonsen ID, Mills Flemming J, Myers RA (2005) Robust state-space modeling of animal movement data. Ecology 86:2874-2880 (Appendix A)