Displaying 1 result from an estimated 1 matches for "optim_patch".
2008 Apr 04
2
suggested minor patch for optim.R
optim ignores misspelled control parameters, so that trying
to set (e.g.) "maxint=1000" in the control argument silently
does nothing. The patch below (watch out for line breaks! also
posted at http://www.zoo.ufl.edu/bolker/optim_patch.R , and
http://www.zoo.ufl.edu/bolker/optim_new.R) adds
three lines to optim.R that issue a warning if any names of
elements of "control" fail to match the internal object that
contains the defaults.
Here is code that shows the behavior:
set.seed(1001)
x <- rnorm(10)
y <- rnorm...