Achim Ahrens
Dear Stata Experts,
I have installed the Stata Lasso Pack on my version of Stata (Stata 16.1 on Mac OS).
I have a dataset with several time series with 268 observations. I want to see whether lags of variable X are able to predict variable Y. I want to use a fixed length rolling window and starting my validation from observation 201.
Therefore, I am using the following command from the Stata Lasso Pack.
The code works, however, I was expecting my rolling window to be something like 8-220 (221) , 9-221 (222) .... and so on and so forth. However, the code uses negative indexation to denote my observations and spits out something like:
basically it starts counting observations with negative numbers. This is very confusing and I don't know what is going on.
Any suggestion?
Best,
Edoardo
Dear Stata Experts,
I have installed the Stata Lasso Pack on my version of Stata (Stata 16.1 on Mac OS).
I have a dataset with several time series with 268 observations. I want to see whether lags of variable X are able to predict variable Y. I want to use a fixed length rolling window and starting my validation from observation 201.
Therefore, I am using the following command from the Stata Lasso Pack.
Code:
cvlasso Y L(1/8).X, rolling origin(200) fixedwindow lopt
Code:
Training from-to (validation point): -36-200 (201), -35-201 (202),
Any suggestion?
Best,
Edoardo
Comment