Hello everybody,
I'm trying to forecast values for the strategy of companies. I have a panel dataset for companies from 2000 - 2015, but I only need the forecasted values for 2005 - 2015. What I would like to do is take the periods 2000 - 2004, apply exponential smoothing and receive the forecasted value for 2005, then start over for the periods of 2001 - 2005 and forecast 2006, and so on. In the end I only need the last forecasted value for each of the time windows one after the other as one variable. Does anybody have any suggestions of how to do that?
I thought about using
tssmooth exponential double smooth_`var'_2005=`var' if inrange(year,2000,2005)
and do this for all periods, but I'm not sure if it would do what I expect it to do and if there is an option with less manual effort? The rolling command wouldn't really help in this case because it would always "overwrite" the end value I'm interested in, no?
Thank you so much for your help in advance
Related Posts with Can I use tssmooth for a fixed number of periods like a rolling forecast, safe the forecast t+5, then start in t+1, save forecast t+6...
Is there an alternative to gen and egen that will save as double if the number is large?Yesterday I realized that I have to set type to double before doing "gen" for large numeric variable…
Finding out the reason for collinearityThis sounds very dumb actually. But I tried to control for treatment type (T1, T2, and T3) in the re…
How to estimate prevalences of an indicator over the years?Dear Statalist, My dataset presents the prevalence of a given indicator over 11 years (2007 to 2017…
Merge data1 to data2 between certain datesDear Stata Users, I need to merge data1 to data2 such that data1 is merged to data2 between two dat…
Help with a problem setStarted using Stata in my Quantitative Methods course, previous statistics course used R and Rstudio…
Subscribe to:
Post Comments (Atom)
0 Response to Can I use tssmooth for a fixed number of periods like a rolling forecast, safe the forecast t+5, then start in t+1, save forecast t+6...
Post a Comment