Bookmark and Share

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

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

st: out of sample prediction after xtreg

From   Francie Eikermann Streich <[email protected]>
To   [email protected]
Subject   st: out of sample prediction after xtreg
Date   Fri, 16 Mar 2012 14:11:11 -0400


I have a panel dataset spanning all 50 states and the years 1990-2007. I am running a fixed effects regression using "xtreg y x1 x2..., fe" on the years 1990-2000. I then want to use these estimates to predict the outcome variable in the years 2001-2007.

I would like to use "predict yhat, xbu" after running this regression, but this only generates predictions in sample (i.e. for 1990-2000). How can I get predicted values out of sample?

*   For searches and help try:

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