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 at the end of May, and its replacement, statalist.org is already up and running.


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

st: RE: Problem with xi and xtivreg2


From   "Schaffer, Mark E" <M.E.Schaffer@hw.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Problem with xi and xtivreg2
Date   Sun, 19 Jun 2011 17:40:55 +0100

Juan,

> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu 
> [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of 
> Juan Pablo Cote Baron
> Sent: 19 June 2011 00:40
> To: statalist@hsphsun2.harvard.edu
> Subject: st: Problem with xi and xtivreg2
> 
> Dear statalist users,
>  
> I have a problem when using the xi: xtivreg2... combination. 
> I need to regress "x" on "w", an instrumented variable "y" 
> and on year dummies. I typed this:
>  
> xi: xtivreg2 x w i.year (y = z), fe robust
>  
> but it doesn't work. Instead, I get the error message "too 
> few variables specified r(102)", but I don't know what the 
> problem could be (the syntax works when I use it with another 
> cathegorical variable different from year) .

What happens if you first use -xi- on its own to create the year
dummies, and then use the year dummies in the estimation without -xi-?

--Mark

>  
> Thanks in advance,
>  
> Juan Pablo Cote.
> 
> 


-- 
Heriot-Watt University is a Scottish charity
registered under charity number SC000278.


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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