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

Re: st: xtivreg:how to instrument more than one endogenousvariable?


From   "Dev Vencappa" <[email protected]>
To   <[email protected]>
Subject   Re: st: xtivreg:how to instrument more than one endogenousvariable?
Date   Thu, 30 Sep 2004 01:00:26 +0100

>>
Mark
 thanks a lot for the quick reply and for pointing out towards clarification of the concept of IV. Indeed, as you rightly spotted, the problem was with some missing observations, coming from wrongly coding some lines in the do file. It is a lot clearer now.

Dev
>>> [email protected] 29/09/2004 23:42:44 >>>
Dev,

Two points to make here.

Quoting Dev Vencappa <[email protected]>:

> >
> Stata users, I apologise if that has been posted before and would
> really be grateful to be pointed to the relevant query on statalist
> for that. Does anybody know if more than one endogenous variable can
> be instrumented within xtivreg?
> 
> I have tried (in one single line):
> 
> xtivreg TFPGTL2 outpgrowth capintgrow factgrow (npintermediate
> npcapital npconsumer=l.npintermediate l.npcapital l.npconsumer) if
> origtariffcoding==1, fe
> 
> and I am getting the message:
> no observations
> r(2000);

There's nothing wrong with the syntax.  Do you have any missing values?  
Try running a nonsense regression using the same observations, i.e.,

ivreg TFPGTL2 outpgrowth capintgrow factgrow (npintermediate npcapital 
npconsumer=l.npintermediate l.npcapital l.npconsumer) if 
origtariffcoding==1

and see what happens.

> I tried to break the command into two lines:
> 
> xtivreg TFPGTL2 outpgrowth capintgrow factgrow/*
> */(npintermediate npcapital npconsumer=l.npintermediate l.npcapital
> l.npconsumer) if origtariffcoding==1, fe
> 
> and am getting the message:
> 
> factgrow: operator invalid
> r(198)
> 
> Also, if the above were to be made to work, I wonder if it would
> actually achieve what I want to do:
> ie, instrument npintermediate with its first lag. Instrument
> npcapital with its first lag. Instrument npconsumer with its first
> lag. At the moment, the command looks to me as if the instruments
> will be used at random for the instrumented variables (or I may be
> wrong in understanding how stata works)

Actually, I think the misunderstanding is in how the method of 
instrumental variables works.  See e.g.

http://www.stata.com/statalist/archive/2002-09/msg00098.html 

or Vince Wiggins' FAQ on instrumental variables on the Stata website.

Cheers,
Mark

> Any help in this greatly appreciated.
> 
> Many thanks
> Dev
> 
> 
> 
> 
> This message has been scanned but we cannot guarantee that it and
> any
> attachments are free from viruses or other damaging content: you
> are
> advised to perform your own checks.  Email communications with the
> University of Nottingham may be monitored as permitted by UK
> legislation.
> 
> 
> *
> *   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/

This message has been scanned but we cannot guarantee that it and any
attachments are free from viruses or other damaging content: you are
advised to perform your own checks.  Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.


*
*   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