fit_mpm | R Documentation |
mpm
)fit a random walk with time-varying move persistence to temporally regular or irregular location data
fit_mpm(
x,
what = "predicted",
model = c("jmpm", "mpm"),
coords = 3:4,
control = mpm_control(),
inner.control = NULL,
optim = NULL,
optMeth = NULL,
verbose = NULL
)
x |
a |
what |
if a |
model |
mpm model to fit; either |
coords |
column numbers of the location coordinates (default = 3:4) |
control |
list of control settings for the outer optimizer (see mpm_control for details) |
inner.control |
list of control parameters for the inner optimization |
optim |
is deprecated, use ssm_control(optim = "optim") instead, see ssm_control for details |
optMeth |
is deprecated, use ssm_control(method = "L-BFGS-B") instead, see ssm_control for details |
verbose |
is deprecated, use ssm_control(verbose = 1) instead, see ssm_control for details |
a list with components
fitted
a dataframe of fitted locations
par
model parameter summary
data
input data.frame
tmb
the TMB
object
opt
the object returned by the optimizer
Jonsen ID, McMahon CR, Patterson TA, et al. (2019) Movement responses to environment: fast inference of variation among southern elephant seals with a mixed effects model. Ecology. 100(1):e02566
## fit jmpm to two southern elephant seal tracks
xs <- fit_ssm(sese2, spdf=FALSE, model = "rw", time.step=72, control = ssm_control(verbose = 0))
fmpm <- fit_mpm(xs, model = "jmpm")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.