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...
Plot only one baselevel using coefplot for multiple equationsI would like to plot only one baselevel using coefplot for two equations. The code I am using is coe…
Replication code for power analysisHello everyone I need to conduct power analysis for an RCT for a bunch of outcome variables from th…
How to save covariance matrix of the estimated fixed effects after reghdfeHi everybody! I have a longitudinal dataset (individuals x years, individuals live in different are…
How to save s.e. after reghdfe commandHi everybody! I have a lingitudinal dataset (individuals x years, individuals live in different are…
Reshape matched case control data from wide to long formatHello, I have a case control study with 59 cases matched 1:3 with controls on birth year. The match…
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