Could the problem be that nlm is for Minimization? In fact in the first line of the manual.
JN On 10/19/2011 06:00 AM, [email protected] wrote: > Message: 62 > Date: Tue, 18 Oct 2011 11:12:09 -0700 (PDT) > From: aazaff <[email protected]> > To: [email protected] > Subject: [R] Non-linear maximization function in R > Message-ID: <[email protected]> > Content-Type: text/plain; charset=us-ascii > > Hello, > > # Full disclosure. I am not sure if my problem is a bug(s) in the code, or a > fundamental misunderstanding on my part about what I am trying to do with > these statistics. I am not familiar with maximum likelihood tests. > ... > #Furthermore, if I attempt a non-linear maximization on this function, I > continue to get a positive negative log-odds and what I think are > unreasonable looking parameter estimates. What does this mean? > >> >sol<-nlm(HOF,p,x=Sample,y=Aequipecten,model=4) >> > sol > $minimum > [1] 32.72701 > ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

