[R] Question with nlm

2007-06-14 Thread adschai
Hi, I would really appreciate if I could get some help here. I'm using nlm to minimize my negative log likelihood function. What I did is as follows: My log likelihood function (it returns negative log likelihood) with 'gradient' attribute defined inside as follows: # ==Method

[R] Question about nlm function

2004-06-14 Thread Lovely Goyal
Hello! I am a statistics graduate student and a new user of R. I am using nlm function to get estimates from a nonlinear function. I am running a simulation program. When I run the simulation with same set of starting vales then one third of the time I get bad results and I also noticed that

[R] question about nlm function

2004-06-14 Thread Lovely Goyal
Hello! I am a statistics graduate student and a new user of R. I am using nlm function to get estimates from a nonlinear function. I am running a simulation program. When I run the simulation with same set of starting vales then one third of the time I get bad results and I also noticed that