How to ignore MLE error report in a loop (grid search)
Posted: Mon Jan 09, 2012 8:41 pm
Hi All,
Thank you for reading this message.
I am doing full-information maximum likelihood estimation in EViews. In order to obtain some confidence that the estimated log likelihood is "global" max, instead of local max, I am trying to do grid search over the parameter space by changing the initial values of the parameters. However, during this process, some initial values for the parameters may not be good enough and EViews will report error message (for example log of nonpositive number, divided by zero etc.) and stop executing the loop. In that case I need to restart the loop manually by skipping the "bad" initial value and jump to next initial value in the loop. This is very time-consuming.
I am wondering that if EViews could ignore this kind of error message and skip the "bad" initial values automatically and execute the remaining loop?
Other than grid search, what is the alternative way to get "global" max for MLE?
Thank you very much!!
Mingming
Thank you for reading this message.
I am doing full-information maximum likelihood estimation in EViews. In order to obtain some confidence that the estimated log likelihood is "global" max, instead of local max, I am trying to do grid search over the parameter space by changing the initial values of the parameters. However, during this process, some initial values for the parameters may not be good enough and EViews will report error message (for example log of nonpositive number, divided by zero etc.) and stop executing the loop. In that case I need to restart the loop manually by skipping the "bad" initial value and jump to next initial value in the loop. This is very time-consuming.
I am wondering that if EViews could ignore this kind of error message and skip the "bad" initial values automatically and execute the remaining loop?
Other than grid search, what is the alternative way to get "global" max for MLE?
Thank you very much!!
Mingming