BookmarkSubscribeRSS Feed
clcl
Calcite | Level 5

does anyone know how to export the "c" and the "pval" from proc logistic ???

you would think its simple but i cant find it...  searched and tried most of the online help ...

Thanks in advance

CL

4 REPLIES 4
Reeza
Super User

What do you mean by export?

You can capture the P-Value and C-Statistics using ODS tables once you find the appropriate name.

ie check the log for the names that correspond and then capture them.

ods trace on;

proc logistic data=have;

...

run;

ods trace off;

Using the data from the documentation:

ods table globaltests=pvalue association=cstats;

title 'Stepwise Regression on Cancer Remission Data';

proc logistic data=Remission outest=betas covout;

   model remiss(event='1')=cell smear infil li blast temp

                  /details

                  lackfit;

run;

clcl
Calcite | Level 5

When I wrote export I meant something like output out= c=  Pval=

Reeza
Super User

Then check the docs for those options, or it could be under proc logistic or the model statements.

I can't recall anything.

clcl
Calcite | Level 5


thanks , you first reply "ods trace on" is what i needed !

have a good day

CL

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 4 replies
  • 804 views
  • 0 likes
  • 2 in conversation