Skip to content
Prev 23307 / 29559 Next

criterion for the best fitting model if using GMM?

On Fri, 28 Aug 2015, Qiuhua Ma wrote:

            
Please do read the posting instructions, and provide sample code 
illustrating your problem.

Your main problem is not reading the documentation, as you will see that 
you have ignored the method= argument (assuming that your neighbours are 
sparse). Fitting ML models with n=40K with method="Matrix" for symmetric 
weights and method="LU" for asymmetric weights just works for sparse 
weights. If you are using dense neighbours, you should not be surprised 
that things become difficult.

Using AIC is questionable anyway in econometrics, as you should know the 
correct model from theory, or possibly use Bayesian model selection.

Stata spreg ml returns e(ll):

http://econ-server.umd.edu/~Prucha/Papers/SJ_SPREG%282013%29.pdf
This illustrates why you should indicate the published paper defining the 
LL of such GMM-estimated models:
Error in UseMethod("logLik") :
   no applicable method for 'logLik' applied to an object of class "tsls"
Error in UseMethod("logLik") :
   no applicable method for 'logLik' applied to an object of class "tsls"

Stata spreg g2sls does not returm a log likelihood.

Please do check the literature before posting speculations.

Roger Bivand