[R] gradient option in nlm function

2003-11-17 Thread yuanji
Dear list members, I am trying to use nlm function to maximize a mixture likelihood of beta densities. There are five unknown parameters in the likelihood. Since I can get the analytic gradient, I attach the gradient attribute in my target likehood function. The code is as the following

Re: [R] gradient option in nlm function

2003-11-17 Thread yuanji
Oh, that's a typo. I passed the function target. Seems to me R requires some kind of specific syntex. Yuan Ji, Ph.D. Assistant Professor Department of Bistatistics The University of Texas M.D. Anderson Cancer Center 1515 Holcombe Blvd. - Unit 447

[R] gradient option in 'nlm' function

2003-11-16 Thread yuanji
FONT face=Default Sans Serif, Verdana, Arial, Helvetica, sans-serif size=2DIVDear list members,/DIVDIVnbsp;/DIVDIVI am trying to use nlm function to maximize a mixture likelihood of beta densities. There are five unknown parameters in the likelihood. Since I can get the analytic gradient, I