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

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

2010-10-22 Thread harishmani
I am facing a problem when trying to maximize the likelihood function. I am actually estimating a dynamic switching regression model using simulated likelihood approach. The likelihood function is estimated using Simulations and is extremely complex. It comprises of 16 parameters ,q1