Hi,
I am estimating a Poisson log-normal count data model with maximum likelihood and I need to do a numerical one-dimension integration within optimize() in Mata.
So far, I used the quadrature on sparse grid:
http://www.sparse-grids.de/
But the results are partially inconsistent, i. e. different initial values of the parameters make converge the log-likelihood function at different points and thus different estimates (although close).
I think that this depends on the fact that for very few observations and some nodes the llf goes to infinite , i. e. it would take larger values than the range of exp() 8e+307, and this affects the optimisation procedure at each iteration.
The Quadrature() class seems particularly suitable for this problem, but I am afraid is available only for Stata 16 (I have Stata 15):
https://www.stata.com/manuals/m-5qua...-5Quadrature()
and thus I was wondering what would be the best way to proceed.
Any help would be greatly appreciated.
Simone
Related Posts with Quadrature() and numerical integration in Mata
dummy variableshello everyone, I have some trouble creating two dummy variables. I have a dataset with the variable…
use dataI know it is a question that must be easy for you to answer but this is my first ever assignment wit…
Destring selected variables ending with a number suffixHello everyone, I have a rather simple question and was wondering if someone can help me with it. …
Real Stepwise RegressionsI found only a one-step procedure that leaves in the model only variables with a certain p-value. I…
Putting the bars in a prespecified orderI want to do draw the frequency distribution of a categorical variable and want the bars to be arran…
Subscribe to:
Post Comments (Atom)
0 Response to Quadrature() and numerical integration in Mata
Post a Comment