generates initial values for model parameters and unobserved gamma's;
structures data and initial values for C++ TMB
template;
fits move persistence model; minimizes the joint log-likelihood via the selected
optimizer (nlminb
or optim
); structures and passes output
object to fit_mpm
mpmf(
x,
model = c("mpm", "jmpm"),
optim = c("nlminb", "optim"),
verbose = FALSE,
control = NULL,
inner.control = NULL
)
temporally regularized location data, eg. output from fit_ssm
specify whether MPM is to be fit with unpooled ("mpm") or pooled ("jmpm") RW variance(s).
numerical optimizer to be used ("nlminb" or "optim")
report progress during minimization
list of control parameters for the outer optimization (type ?nlminb or ?optim for details)
list of control settings for the inner optimization (see ?TMB::MakeADFUN for additional details)
called by fit_mpm
, not intended for general use. see ?fit_mpm.