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: Re: Re: st: Out-of-sample forecasting using OLS regression

From   Christopher Baum <>
To   "" <>
Subject   Re: Re: Re: st: Out-of-sample forecasting using OLS regression
Date   Wed, 22 Aug 2012 10:58:22 +0000

On Aug 22, 2012, at 2:33 AM,Edin wrote:

> I did run example which you have provided me with and everything
> worked well. But when I have tried with my own data it didn't work
> (because for the out-of-sample period instead of data all the
> observations were filled with dots), then I've decided to input random
> data for periods of forecast and repeated the procedure which you have
> suggested and Stata generated predicted values for out-of-sample
> observations.

In a dynamic forecast, you must have values for the exogenous predictors. The endogenous variables are filled in from the model's prior
predictions, but before forecasting you must define the other variables' values (even if they are themselves forecasts from some other
method, e.g. trend extrapolations, judgements about what the Fed will do, guesses about the future path of oil prices, etc.). I wouldn't recommend
using random draws for future (ex ante) X values, but as you see it solves the mechanical problem.


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