I try to loop a lasso regression but I do not know how to store the beta coefficients.
I use the the command -lasso2- from SSC.
The loop looks like this:
Code:
forvalues i = 1(1)10 { lasso2 y x1 x2 x3 x4 if time < `i', lic(bic) postres }
Best regards,
Steven
0 Response to Loop Lasso Regression and Store Values
Post a Comment