Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

RE: st: AW: Question on xtreg and the FE option


From   "Schaffer, Mark E" <[email protected]>
To   <[email protected]>
Subject   RE: st: AW: Question on xtreg and the FE option
Date   Fri, 9 Nov 2012 10:29:35 -0000

Justina,

> -----Original Message-----
> From: [email protected] [mailto:owner-
> [email protected]] On Behalf Of Justina Fischer
> Sent: 08 November 2012 22:08
> To: [email protected]
> Subject: Re: st: AW: Question on xtreg and the FE option
> 
> it depends also on the Staa version you use
> 
> In my case -xtreg- requires -xtset-, and -xtset- requires both unit and time to
> be set

Which Stata version would that be?  I just checked back from version 12 through version 9, and

xtset panelvar

was legal for all.

I am pretty sure the basic point applies through version 8 as well: xtreg supported and supports estimation using datasets designated as panels without a time dimension.

--Mark

> 
> @Andrew: no, -xtreg, fe- does not automatically generate time fixed effects.
> -fe- relates to the unit fixed effects.
> 
> Justina
> -------- Original-Nachricht --------
> > Datum: Thu, 08 Nov 2012 20:57:04 +0100
> > Von: Klaus Pforr <[email protected]>
> > An: [email protected]
> > Betreff: Re: st: AW: Question on xtreg and the FE option
> 
> > For your problem, a good solution is -- as clivelist recommended -- to
> > use your xtreg, fe with time dummies.
> >
> > A simple example would be:
> >
> > webuse nlswork, clear
> > xtset idcode
> > xtreg ln_wage age ttl_exp i.year, fe
> >
> > this is a candidate of a simple answer to your presumably simple question.
> >
> > best
> >
> > Klaus
> >
> > Am 08.11.2012 16:24, schrieb Andrew Nicholson:
> > > Ok got what looks like a couple mixed responses.  Heres my xtset
> > >
> > > xtset CountyNum QuarterYear
> > >
> > > Where CountyNum goes from 1 - 105 identifying all 105 individual
> > counties in Kansas.  QuarterYear goes from 2001Q1 to 2008Q4 for each
> county.
> > >
> > > So for this xtset, using the fe option it will automatically
> > > generate
> > County Level Fixed Effects and Quarter time fixed effects?  Or
> > possibly just the County?
> > >
> > > Andrew Nicholson
> > >
> > > ----- Original Message -----
> > > From: "Klaus Pforr" <[email protected]>
> > > To: [email protected]
> > > Sent: Thursday, November 8, 2012 4:37:50 AM
> > > Subject: AW: st: AW: Question on xtreg and the FE option
> > >
> > > Linear fixed-effects-models can be understood as models on the
> > > deviances
> > of the means, where the fixed-effect is the individual heterogeneity
> > in the mean. Very often you are not interested in the deviance of a
> > specific observation of a unit across time. All observation within a
> > unit treated equally, i.e. they are symmetric with respect to time.
> > Time becomes important, when you have/want to model correlation across
> > time in the error term (help xtreg##correlation). I thing all of these
> > options need the additional time specification in the xtset, but not the
> xtreg itself.
> > >
> > > Klaus
> > > __________________________________
> > >
> > > Klaus Pforr
> > > GESIS -- Leibniz Institut für Sozialwissenschaft
> > > B2,1
> > > Postfach 122155
> > > D - 68072 Mannheim
> > > Tel: +49 621 1246 298
> > > Fax: +49 621 1246 100
> > > E-Mail: [email protected]
> > > __________________________________
> > >
> > >
> > > -----Ursprüngliche Nachricht-----
> > > Von: [email protected]
> > [mailto:[email protected]] Im Auftrag von Justina
> > Fischer
> > > Gesendet: Donnerstag, 8. November 2012 11:27
> > > An: [email protected]
> > > Betreff: Re: st: AW: Question on xtreg and the FE option
> > >
> > > How can stata use xtreg, fe without knowing the time dimension?
> > > -------- Original-Nachricht --------
> > >> Datum: Thu, 8 Nov 2012 10:21:07 +0000
> > >> Von: Nick Cox <[email protected]>
> > >> An: [email protected]
> > >> Betreff: Re: st: AW: Question on xtreg and the FE option This is
> > >> not correct. There is no rule that a time variable _must_ be
> > >> specified.
> > >>
> > >> On Thu, Nov 8, 2012 at 10:11 AM, Justina Fischer
> > >> <[email protected]>
> > >> wrote:
> > >>> Hi Andrew
> > >>>
> > >>> when using xtset you have to specify both observational unit and
> > >>> time
> > >> dimension at the same time.
> > >>> E.g. xtset country year
> > >>>
> > >>> or xtset id timeline
> > >>>
> > >>>
> > >>> etc.
> > >>>
> > >>>
> > >>> Best
> > >>>
> > >>> Justina
> > >> *
> > >> *   For searches and help try:
> > >> *   http://www.stata.com/help.cgi?search
> > >> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> > >> *   http://www.ats.ucla.edu/stat/stata/
> > > *
> > > *   For searches and help try:
> > > *   http://www.stata.com/help.cgi?search
> > > *   http://www.stata.com/support/faqs/resources/statalist-faq/
> > > *   http://www.ats.ucla.edu/stat/stata/
> > >
> > >
> > > *
> > > *   For searches and help try:
> > > *   http://www.stata.com/help.cgi?search
> > > *   http://www.stata.com/support/faqs/resources/statalist-faq/
> > > *   http://www.ats.ucla.edu/stat/stata/
> > >
> > > *
> > > *   For searches and help try:
> > > *   http://www.stata.com/help.cgi?search
> > > *   http://www.stata.com/support/faqs/resources/statalist-faq/
> > > *   http://www.ats.ucla.edu/stat/stata/
> >
> >
> > --
> > __________________________________
> > Klaus Pforr
> > GESIS -- Leibniz Institut für Sozialwissenschaft
> > B2,1
> > Postfach 122155
> > D - 68072 Mannheim
> > Tel: +49 621 1246 298
> > Fax: +49 621 1246 100
> > E-Mail: [email protected]
> > __________________________________
> >
> > *
> > *   For searches and help try:
> > *   http://www.stata.com/help.cgi?search
> > *   http://www.stata.com/support/faqs/resources/statalist-faq/
> > *   http://www.ats.ucla.edu/stat/stata/
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/


----- 
Sunday Times Scottish University of the Year 2011-2013
Top in the UK for student experience
Fourth university in the UK and top in Scotland (National Student Survey 2012)

We invite research leaders and ambitious early career researchers to 
join us in leading and driving research in key inter-disciplinary themes. 
Please see www.hw.ac.uk/researchleaders for further information and how
to apply.

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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index