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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 712 views
  • 0 likes
  • 2 in conversation