Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: ivreg


From   Mark Schaffer <[email protected]>
To   [email protected], is300gp <[email protected]>
Subject   Re: st: ivreg
Date   Wed, 28 Jul 2004 01:18:35 +0100 (BST)

Gang,

Quoting is300gp <[email protected]>:

> Hello, all:
> 
> I'm running an example given by Wooldridge,Introductory Econometrcs
> (2nd)
> pp513, the code and data is as follows:
> 
> use http://fmwww.bc.edu/ec-p/data/wooldridge/JTRAIN
> tsset fcode year
> sort fcode year
> drop if year==1989
> ivreg D.lscrap (D.hrsemp = D.grant)
> 
> Then I want to run ivreg, I used the following:
> 
> iis fcode
> tis year
> xtivreg scrap d88 (hrsemp=grant), fe
> 
> But I got different results, could anybody tell me what am I doing
> wrong?

It's probably because first-differencing is not equivalent to fixed 
effects.  If you convert the data into mean-deviation form and then use 
ivreg (or ivreg2), the coefficients ought to match.  (The SEs may not 
match, though, because ivreg will be using the wrong degrees of freedom.)

Hope this helps.

--Mark

> 
> Thanks a lot,
> 
> Gang
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> *
> *   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.sml.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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index