Help using Base SAS procedures

proc logistic

Reply
Contributor
Posts: 45

proc logistic

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

Super User
Posts: 19,875

Re: proc logistic

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;

Contributor
Posts: 45

Re: proc logistic

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

Super User
Posts: 19,875

Re: proc logistic

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

I can't recall anything.

Contributor
Posts: 45

Re: proc logistic


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

have a good day

CL

Ask a Question
Discussion stats
  • 4 replies
  • 230 views
  • 0 likes
  • 2 in conversation