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 on April 23, and its replacement, is already up and running.

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

re: st: xtreg individual and year fixed effects

From   Christopher Baum <>
To   "" <>
Subject   re: st: xtreg individual and year fixed effects
Date   Thu, 29 Mar 2012 12:57:47 -0400

webuse grunfeld,clear
xtreg invest mvalue kstock i.year, fe
predict double ife, u
replace ife = ife + _b[_cons]
forv i=1936/1954 {
	qui replace ife = ife + _b[`i'.year] if year==`i'
su ife
tabstat ife, by(year)
tabstat ife, by(company)


Kit Baum   |   Boston College Economics & DIW Berlin   |
                             An Introduction to Stata Programming  |
  An Introduction to Modern Econometrics Using Stata  |

*   For searches and help try:

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