In other words, when we use forecast, in which way is the model used on past observations? it looks as if it doesn't. it "predicts" the actual value whether or not that option is checked. Since I wish to see if my model predicts the "past" somewhat reasonably, this is of no use for me.
A simple example to replicate:
Code:
clear all webuse sunspot tsappend, add(20) * Predict with regular linear model reg spot time estimate store lin predict spot_hat1 tsline spot spot_hat1, name(predict) * Using stata's forecast forecast create forecast1 forecast estimates lin forecast solve, suffix(_hat2) periods(20) static tsline spot spot_hat2, name(forecast) graph combine predict forecast
0 Response to Confusion between out of sample predict and forecast
Post a Comment