Re: [R] Non-linear maximization function in R

2011-10-19 Thread peter dalgaard
On Oct 18, 2011, at 20:12 , aazaff wrote: > > # My understanding of how this is supposed to work is that the final line of > the HOF function: > "sum(-dbinom(y,M,fv,log=TRUE))" is supposed to give the negative log-odds of > that function being a good fit. > >> HOF(p,x=Sample,y=Aequipecten,model

Re: [R] Non-linear maximization function in R

2011-10-19 Thread John C Nash
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, r-help-requ...@r-project.org wrote: > Message: 62 > Date: Tue, 18 Oct 2011 11:12:09 -0700 (PDT) > From: aazaff > To: r-help@r-project.org > Subject: [R] Non-linear maximization