Optimises the negative log-posterior built from model + data. For
delay_only data this fits the reporting-delay process alone (no epidemic);
the joint epidemic fit is added in later phases.
Usage
fit(
model,
data,
priors = NULL,
init = NULL,
control = list(iter.max = 500, eval.max = 1000, rel.tol = 1e-09)
)Arguments
- model
A
model()object.- data
Prepared-data list from
prepare_data().- priors
Optional prior bundle; defaults to
default_priors().- init
Optional named init list.
- control
nlminbcontrol list.
