Hello to all,
While writing a program that runs a bunch of LASSO equations and found difficulty in establishing a few variables;
This is my equation: equation eq_nxv{!i}.enet(penalty=lasso, alpha=1, lambda=0.401, conv=1e-5, maxit=500) n{!i} v1 ... v92 c
(If anyone could help) I'd like to know if it is possible to, instead of choosing an integer number (for alpha, lambda, conv and maxit), let eviews choose the best fit for the equation via this program.
Thank you!
Lasso program
Moderators: EViews Gareth, EViews Moderator
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13329
- Joined: Tue Sep 16, 2008 5:38 pm
Re: Lasso program
Selecting the "best" maxit and conv is a bit nonsensical.
If you don't specify Lambda, EViews will select the best lambda for you automatically.
Using automatic selection for alpha is a bit weird. You'd have to define what "best" means in this case.
If you don't specify Lambda, EViews will select the best lambda for you automatically.
Using automatic selection for alpha is a bit weird. You'd have to define what "best" means in this case.
Follow us on Twitter @IHSEViews
Return to “Program Repository”
Who is online
Users browsing this forum: No registered users and 3 guests