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]

st: out of sample prediction after xtreg

From   Francie Eikermann Streich <>
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–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index