Re: [Rd] bug from nlm function (PR#9711)

From: Ben Bolker <bolker_at_zoo.ufl.edu>
Date: Tue, 29 May 2007 12:32:27 +0000 (UTC)

 <bla <at> udec.cl> writes:

>
> Full_Name: bernardo moises lagos alvarez
> Version: 2.4.0
> OS: Windows XP professional
> Submission from: (NULL) (152.74.219.16)
>
> > nlm(fllwfuncHnew,p=c(1,20),x=xdat)
>
> Erro en log(b) : el argumento "b" está ausente, sin default
>
> ______________________________________________
> R-devel <at> r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

  This is not a bug. fllwfuncHnew's first argument should be a VECTOR with elements a and b (rather than passing a and b as separate arguments. From ?nlm:

     f: the function to be minimized.  [...]
          This should be a function of a vector of the
          length of 'p' followed by any other arguments specified by
          the '...' argument.

   Please try a little harder to make sure that a bug is a bug before reporting it as such ...



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue 29 May 2007 - 12:36:16 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 29 May 2007 - 13:33:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.