[R] Non-linear maximization function in R

John C Nash nashjc at uottawa.ca
Wed Oct 19 14:52:38 CEST 2011


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-request at r-project.org wrote:
> Message: 62
> Date: Tue, 18 Oct 2011 11:12:09 -0700 (PDT)
> From: aazaff <aazaff at uga.edu>
> To: r-help at r-project.org
> Subject: [R] Non-linear maximization function in R
> Message-ID: <1318961529994-3916240.post at n4.nabble.com>
> 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
>



More information about the R-help mailing list