Jun Xu,
Quoting Jun Xu <[email protected]>:
> Dear statalisters,
>
> Does anyone know how to get LM test statistic after running regress? I have
> looked at test, and it only implements wald and lrtest tests. Other test
> commands such as testnl and linktest do not seem to produce LM Chi-Square
> test-statistic. Thanks a lot.
-ivreg2- (available from ssc-ideas, co-authored by Kit Baum, Steve Stillman and myself)
will do this for you.
In the following example,
ivreg2 y1 x1 x2 x3 (= z1 z2 z3)
the Sargan statistic produced by ivreg2 is an LM test of z1,z2,z3 for the OLS
regression of y1 on x1,x2,x3. See the ivreg2 help file for more details.
--Mark
>
> Jun Xu
> Department of Sociology
> Indiana University at Bloomington
>
> *
> * For searches and help try:
> * http://www.stata.com/support/faqs/res/findit.html
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
>
Prof. Mark Schaffer
Director, CERT
Department of Economics
School of Management & Languages
Heriot-Watt University, Edinburgh EH14 4AS
tel +44-131-451-3494 / fax +44-131-451-3008
email: [email protected]
web: http://www.som.hw.ac.uk/ecomes
________________________________________________________________
DISCLAIMER:
This e-mail and any files transmitted with it are confidential
and intended solely for the use of the individual or entity to
whom it is addressed. If you are not the intended recipient
you are prohibited from using any of the information contained
in this e-mail. In such a case, please destroy all copies in
your possession and notify the sender by reply e-mail. Heriot
Watt University does not accept liability or responsibility
for changes made to this e-mail after it was sent, or for
viruses transmitted through this e-mail. Opinions, comments,
conclusions and other information in this e-mail that do not
relate to the official business of Heriot Watt University are
not endorsed by it.
________________________________________________________________
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/