Skip to content
Prev 16938 / 398502 Next

passing parameters in optim()

On Tue, 5 Feb 2002, Nancy Lo wrote:

            
fn: A function to be minimized (or maximized), with first
          argument the vector of parameters over which minimization is
          to take place. It should return a scalar result.

and a is not the first argument: you told it to optimze over x.