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!

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1017 views
  • 1 like
  • 2 in conversation