BookmarkSubscribeRSS Feed
huhuhu
Obsidian | Level 7

Dear All,

 

I'm very new to the PROC LOGISTIC statement. I would like to create a table from PROC LOGISTIC, which include parameter estimates, oddsradio, p-value, and number of observations. There are hundreds of variables in my by statement, so it's so time consuming to copy and paste. My current code is like this:


proc logistic data=srvc2015 noprint outest=out.PE2015;
by VarName;
model opioids = Value ;
quit;

 

I'm wondering if there are some options I could add to it. If there are some options can generate odds-ratio tables or p-value tables, I can merge them together too. Appreciate all the help.

 

Thank you so much!

1 REPLY 1
Reeza
Super User

https://blogs.sas.com/content/iml/2017/01/09/ods-output-any-statistic.html

 

You'll have to capture the tables and combine them to what you want, but most of the information should be in an ODS table called ParameterEstimates.

 

See the link above for detailed instructions.

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 Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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