Lasso program

For posting your own programs to share with others

Moderators: EViews Gareth, EViews Moderator

88fr.leo
Posts: 9
Joined: Thu Nov 29, 2012 5:41 am

Lasso program

Postby 88fr.leo » Tue Sep 29, 2020 2:54 pm

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!

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 12601
Joined: Tue Sep 16, 2008 5:38 pm

Re: Lasso program

Postby EViews Gareth » Tue Sep 29, 2020 3:16 pm

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.
Follow us on Twitter @IHSEViews


Return to “Program Repository”

Who is online

Users browsing this forum: No registered users and 1 guest