Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: st: Tests of overidentifying restrictions after xtivreg2

From   Kit Baum <>
Subject   re: st: Tests of overidentifying restrictions after xtivreg2
Date   Mon, 1 Mar 2010 10:56:25 -0500

I have estimated the following equation by using xtivreg2, gmm function:


xtivreg2 lsalary ceodual ........ (ownexr ownex2r ownex3r L.ldiv
L.debt=lrisk ..., fe gmm cluster(id) small ffirst


The test results turn out fine.  But when I continue with the xtoverid test
after the above estimation, 


xtoverid, cluster(id)


the following error message appears:


xtoverid error: internal reestimation of eqn differs from original



I read the help file of xtoverid and it is mentioned that it supports
xtivreg2.  May I know what is the problem and how to fix it?

This appears to be a bug in xtoverid, and the authors of that routine have been notified. However there is no reason to use xtoverid (from SSC) in this case. The xtivreg2 output, with GMM option invoked, gives you a Hansen J statistic. If xtoverid worked properly, it would give you the same J statistic. The only need for xtoverid is if you had used official xtivreg rather than user-written xtivreg2.

Kit Baum   |   Boston College Economics & DIW Berlin   |
                              An Introduction to Stata Programming  |
   An Introduction to Modern Econometrics Using Stata  |

*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index