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

2010-10-23 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:

[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

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

2010-10-22 Thread Ravi Varadhan
Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of harishmani Sent: Friday, October 22, 2010 1:28 AM To: r-help@r-project.org Subject: [R] Error message in using nlm() and optim() I am facing a problem when trying to maximize