Re: [R] Error message in using nlm() and optim()

2010-10-22 Thread harishmani
Thanks Ravi for your reply. I have sorted out the problem. The error message was due to the wrong specification of the likelihood function. Thanks once again Harish -- View this message in context: http://r.789695.n4.nabble.com/Error-message-in-using-nlm-and

Re: [R] Error message in using nlm() and optim()

2010-10-22 Thread Ravi Varadhan
You have not provided us sufficient information to help you. I would guess that the error message probably has something to do with the way your likelihood function is defined. Can you at least show us how the function is defined (just the argument list) and the optim call? Ravi. -Original