Description Usage Arguments Value Examples
fits a simple random walk in continuous time to filter Argos KF or LS data and predict locations on a regular time step
1 2 |
d |
a data frame of observations including Argos KF error ellipse info |
span |
degree of loess smoothing (range: 0 - 1) to identify potential outliers in prefilter |
min.dt |
minimum allowable time difference between observations; dt <= min.dt will be ignored by the SSM |
min.dist |
minimum distance from track to define potential outlier locations in prefilter ##' @param ptime the regular time interval, in hours, to predict to. Alternatively, a vector of prediction times, possibly not regular, must be specified as a data.frame with id and POSIXt dates. |
pf |
just pre-filter the data, do not fit the ctrw (default is FALSE) |
... |
arguments passed to sfilter, described below: |
fit.to.subset |
fit the SSM to the data subset determined by prefilter (default is TRUE) |
psi |
estimate scaling parameter for the KF measurement error model error ellipses (0 = no psi, default; 1 = single psi for semi-minor axis) |
optim |
numerical optimizer (nlminb or optim) |
verbose |
report progress during minimization |
a list with components
|
the matched call |
|
a data.frame of predicted location states |
|
a data.frame of fitted locations |
|
model parameter summmary |
|
the input data.frame |
|
the inpu subset vector |
|
the measurement error model used |
|
the object returned by the optimizer |
|
the TMB object |
|
TMB sdreport |
|
the calculated Akaike Information Criterion |
|
the processing time for sfilter |
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
require(dplyr)
data(ellie)
## fit KF measurement error model
fkf <- fit_ssm(ellie, min.dist = 150, ptime = 12, psi = 0)
## fit KFp measurement error model
fkfp <- fit_ssm(ellie, min.dist = 150, ptime = 12, psi = 1)
## fit LS measurement error model
fls <- fit_ssm(ellie[, 1:5], min.dist = 150, ptime = 12)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.