I would like to estimate a model for data before 2015, but then predict for data after 2015 (happy to explain why, but there is a good reason). Predict after cvlasso seems incapable of doing that.
Here's the code:
cvlasso Y Xs, fe nfolds(10) lopt seed(1234), if year<2016
predict temp2, lopt ols e, if year > 2016
(also tried: predict temp2 if year > 2016, lopt ols e)
Each time:
Warning: if condition ignored. Residuals calculated for estimation sample.
What am I doing wrong? Thanks!
Here's the code:
cvlasso Y Xs, fe nfolds(10) lopt seed(1234), if year<2016
predict temp2, lopt ols e, if year > 2016
(also tried: predict temp2 if year > 2016, lopt ols e)
Each time:
Warning: if condition ignored. Residuals calculated for estimation sample.
What am I doing wrong? Thanks!
Comment