Skip to content
Prev 154979 / 398506 Next

Maximum likelihood estimation

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.

I think you intended to optimize over c(a,b,p, lambda), so you need to 
specify them as a single vector.

You may be making life unnecessarily hard for yourself: see function mle() 
in package stats4.

Showing your code without a verbal description of what you are doing nor 
the error message you got is less helpful than we need.
On Wed, 3 Sep 2008, toh wrote: