Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help forecasting out of sample

    Hello everyone
    I am currently trying to forecast the sales of a company using time series models. More specifically, ARIMA/SARIMA models.
    I am able to successfully run the models and obtain the model predictions for the values within the sample, but i cannot seem to find a way to predict OUT of the sample.
    By typing "predict var_prediction, xb" i obtain the third column i show down below (see attached file).

    What i would like is for stata to forecast beyond t = 23, for instance up to t=30. I simply cannot find a way to do this.

    Thanks everyone in advance!
    Attached Files
    Last edited by gonzalo espineira; 21 Nov 2018, 20:01.

  • #2
    Welcome to Statalist.

    You don't tell us what command you are using to fit your model, but supposiing it was arima, then the output of help arima postestimation suggests that what you want is the the dynamic option for the predict command, having first used tsappend to create 7 additional observations. The help arima postestimation output contains more details on the dynamic option, and help tsappend will have more details on that command.

    I'd provide sample code, but you haven't provided usable sample data or told us precisely what command you used to fit the model.

    For better help on future queries, you should review the Statalist FAQ linked to from the top of the page, as well as from the Advice on Posting link on the page you used to create your post. Note especially sections 9-12 on how to best pose your question.

    The more you help others understand your problem, the more likely others are to be able to help you solve your problem.

    Comment

    Working...
    X