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
repeated measures latent class analysis (RMLCA) ID TIME_POINT A B C 1 1 5 10 10 1 2 25 25 25 1 3 50 50 25 2 1 50 25 25 2 2 25 75 75 2…
Generating a composite variable to reflect the number of answered questionsHello, I want to generate a composite variable “ppe” from 10 variables which have been coded 0 “no” …
How to add a macro/string variable to a matrixI run a structural break test using the command estat sbsingle for a large number of regressions. I …
create a weight on dependent var and run as regressionDear all, I have searched in the forum on how to create a weight for a variable but I could not pre…
Non convergence in regression with Multiple ImputationI am trying to run my regressions, but it always Shows the error: convergence not achieved convergen…
Subscribe to:
Post Comments (Atom)
0 Response to Quadrature() and numerical integration in Mata
Post a Comment