BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Demographer
Pyrite | Level 9

Hello,

I have logit regression outputs for 28 countries * 2 sex. The output format is the same, because the independant variables and categories are the same as well as the dependant variable (labor force participation, 0-1). I would like to manage these outputs in order to have a single table stating the estimated parameters in column and the independent variables in row.  Is it possible or do I need to copy-paste in Excel?

1 ACCEPTED SOLUTION

Accepted Solutions
collinelliot
Barite | Level 11

Please do NOT copy and paste into Excel. That would make me cry.

 

I'm not sure how you're running all of these models, but one thing you can do is to save the parameter estimates as data sets using ods output.

 

The basic syntax would be (using proc logistic): 

 

ods output parameterEstimates = your_data_set_name;

 

proc logistic...

 

ods output close;

 

If you're running in a macro, you can do something to give the output data set a unique name and then concatentate or whatever. Your options are many, so please don't copy paste. 🙂 If you have some example code of how you're running the models, I could give you more specific examples of what to do.

View solution in original post

1 REPLY 1
collinelliot
Barite | Level 11

Please do NOT copy and paste into Excel. That would make me cry.

 

I'm not sure how you're running all of these models, but one thing you can do is to save the parameter estimates as data sets using ods output.

 

The basic syntax would be (using proc logistic): 

 

ods output parameterEstimates = your_data_set_name;

 

proc logistic...

 

ods output close;

 

If you're running in a macro, you can do something to give the output data set a unique name and then concatentate or whatever. Your options are many, so please don't copy paste. 🙂 If you have some example code of how you're running the models, I could give you more specific examples of what to do.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 895 views
  • 0 likes
  • 2 in conversation