Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | "Hommes, Carla" <CHommes@diw-econ.de> |
To | "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |
Subject | st: Calculating dynamic confidence intervals after ARIMA |
Date | Thu, 3 May 2012 09:56:42 +0000 |
Dear Statalisters, after an ARIMA-X estimation I want to calculate and draw confidence intervals for my dynamic forecasts for several period ahead into the future. Typically, these should look like funnel-shaped braces around the forecast. My estimation command looks like this: arima y x1 x2 x3, ar(1) ma(1) The following solution (which I found on statalist, credit to Bob Yaffee) only produces parallel intervals around the forecast: (seems to be valid only for the one-step-ahead forecast) Type: predict forecast then: predict fvar, mse Then: generate upper=forecast + 1.96*sqrt(fvar) generate lower=forecast - 1.96*sqrt(fvar) Then: tsline y forecast upper lower, title(My Forecast Profile) What I'm looking for are dynamic, growing confidence intervals that in each period after the prediction starts take into account the uncertainty of the previous period's forecast of all components. How can I do this in STATA? Any help would be greatly appreciated! Thanks Carla * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/