Originally posted by Jared Greathouse
View Post
That one worked!
Code:
Rolling forecasting cross-validation with 1-step ahead forecasts. Elastic net with alpha=1. Training from-to (validation point):(2004), 1980-2004 (2005), 1980-2005 (2006), 1980-2006 (2007), 1980-2007 (2008), 1980-2008 (2009), 1980-2009 (2010), 1980-2010 (2011), 1980-2011 ( 2012), 1980-2012 (2013), 1980-2013 (2014).Code:1980-2003
[ Again, predicted cf is produced after 1980
The full code I run is
tsset panelvar year, y
cvlasso growthgdp l.gdp cpi u
Output dummy1 dummy2 c.indicator1##c.indicator1, h(1) roll postres plotcv
cvlasso, lopt postres mat l e(beta) predict cf, xb residuals lopt noisily
cvlasso growthgdp l.gdp cpi u
Output dummy1 dummy2 c.indicator1##c.indicator1, h(1) roll postres plotcv
cvlasso, lopt postres mat l e(beta) predict cf, xb residuals lopt noisily
greshape long or `int_time',1,0) as you have in #10 and #11
Data are already ordered by panel year,\\`
Any ideas please?
Comment