Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Very elementary Q. re: XTREG, FE


From   "Austin Nichols" <[email protected]>
To   [email protected]
Subject   Re: st: Very elementary Q. re: XTREG, FE
Date   Fri, 20 Oct 2006 17:50:59 -0400

Noel--
You have to make the year dummies yourself, e.g.

use http://fmwww.bc.edu/ec-p/data/macro/abdata.dta
tsset id year
xtreg ys k n, fe cluster(id)
tab year, gen(dy)
drop dy5
xtreg ys k n dy*, fe cluster(id)


On 10/20/06, Noel Campbell <[email protected]> wrote:
Newbie here, and I'm convinced I'm just being incredibly dense, but...

Suppose I have annual data on a cross-section of U.S. states, and I
want to calculate Fixed Effects estimates.

Does STATA automatically include an "annual" time-varying,
cross-sectional invariant effect?  Or do I need to include these by hand
with dummy for every year?

Thanks in advance,

Noel

************
Noel D. Campbell
Assoc. Prof. Econ.
EFIRM
U. Central Arkansas
[email protected]
(501)852-7743

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

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