.fit {superspreading} | R Documentation |
Optimise a function using either numerical optimisation or grid search
Description
Optimise a function using either numerical optimisation or grid search
Usage
.fit(func, fit_method = c("optim", "grid"), ...)
Arguments
func |
A |
fit_method |
A |
... |
< |
Details
Arguments passed through dots depend on whether fit_method
is set to
"optim"
or "grid"
. For "optim"
, arguments are passed to optim()
,
for "grid"
, the variable arguments are lower
, upper
(lower and
upper bounds on the grid search for the parameter being optimised, defaults
are lower = 0.001
and upper = 0.999
), and "res"
(the resolution of
grid, default is res = 0.001
).
Value
A single numeric
.
[Package superspreading version 0.4.0 Index]