New SAS User

Completely new to SAS or trying something new with SAS? Post here for help getting started.
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
DomUk
Fluorite | Level 6

Hi all,

I would like to save the output of the proc glmselect in a separate file. Specifically, I want to create a file containing the selected variables in columns (the estimates of their coefficients that are provided in the result widow). My code is i.e.

proc glmselect data=&infile plot=all seed=123;
model &depvar=indepvar
/ selection=LASSO( stop=none choose=cvex);
run;

I know I can use ods output paramterestimates, however I would like to get a result compared to the outest statement in proc reg. My Variables should be listed in single columns.

 

Thank you very much for an answer.

1 ACCEPTED SOLUTION

Accepted Solutions
FreelanceReinh
Jade | Level 19

Hi @DomUk and welcome to the SAS Support Communities!

 

Would a transposed version of the ParameterEstimates ODS output dataset come close to what you want?

ods output parameterestimates=est;

proc glmselect ...;
...
run;

proc transpose data=est out=want(drop=_name_);
var estimate;
id effect;
run;

View solution in original post

2 REPLIES 2
FreelanceReinh
Jade | Level 19

Hi @DomUk and welcome to the SAS Support Communities!

 

Would a transposed version of the ParameterEstimates ODS output dataset come close to what you want?

ods output parameterestimates=est;

proc glmselect ...;
...
run;

proc transpose data=est out=want(drop=_name_);
var estimate;
id effect;
run;
DomUk
Fluorite | Level 6
Thank you very much!

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 903 views
  • 1 like
  • 2 in conversation