Hello,
I run a logistic regression using the interace of SAS Studio. I get the code at the ned of the question. How can i i add odds ratios in the output?
I add the oddratio statement as described in the following link but i get the error:
https://documentation.sas.com/doc/en/pgmsascdc/v_023/casstat/casstat_logselect_examples08.htm
Thanks in advance,
Andreas
ods noproctitle;
proc logselect data=CASUSER.PVA97NK_26_VIYA_PARTITION;
partition fraction(validate=0.3);
class DemCluster DemGender DemHomeOwner StatusCat96NK;
model TARGET_B(event='1')=DemCluster DemGender DemHomeOwner StatusCat96NK
DemAge DemMedHomeValue DemMedIncome DemPctVeterans GiftAvg36 GiftAvgAll
GiftAvgCard36 GiftAvgLast GiftCnt36 GiftCntAll GiftCntCard36 GiftCntCardAll
GiftTimeFirst GiftTimeLast 'Partition Indicator'n PromCnt12 PromCnt36
PromCntAll PromCntCard12 PromCntCard36 PromCntCardAll StatusCatStarAll /
link=logit clb;
selection method=stepwise
(stop=sbc choose=sbc) hierarchy=none;
output out=CASUSER.sot predicted;
run;
ods noproctitle;
proc logselect data=CASUSER.PVA97NK_26_VIYA_PARTITION;
partition fraction(validate=0.3);
class DemCluster DemGender DemHomeOwner StatusCat96NK;
model TARGET_B(event='1')=DemCluster DemGender DemHomeOwner StatusCat96NK
DemAge DemMedHomeValue DemMedIncome DemPctVeterans GiftAvg36 GiftAvgAll
GiftAvgCard36 GiftAvgLast GiftCnt36 GiftCntAll GiftCntCard36 GiftCntCardAll
GiftTimeFirst GiftTimeLast 'Partition Indicator'n PromCnt12 PromCnt36
PromCntAll PromCntCard12 PromCntCard36 PromCntCardAll StatusCatStarAll /
link=logit clb;
selection method=stepwise
(stop=sbc choose=sbc) hierarchy=none;
output out=CASUSER.sot predicted;
run;
ods noproctitle;
proc logselect data=CASUSER.PVA97NK_26_VIYA_PARTITION;
partition fraction(validate=0.3);
class DemCluster DemGender DemHomeOwner StatusCat96NK;
model TARGET_B(event='1')=DemCluster DemGender DemHomeOwner StatusCat96NK
DemAge DemMedHomeValue DemMedIncome DemPctVeterans GiftAvg36 GiftAvgAll
GiftAvgCard36 GiftAvgLast GiftCnt36 GiftCntAll GiftCntCard36 GiftCntCardAll
GiftTimeFirst GiftTimeLast 'Partition Indicator'n PromCnt12 PromCnt36
PromCntAll PromCntCard12 PromCntCard36 PromCntCardAll StatusCatStarAll /
link=logit clb;
selection method=stepwise
(stop=sbc choose=sbc) hierarchy=none;
output out=CASUSER.sot predicted;
run;
The documentation at your link says:
This documentation is for a version of the software that is out of support. Select a version from the version selector in the banner, or access the latest documentation.
At this link: https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/casstat/casstat_logselect_toc.htm there is no ODDSRATIO statement.
An ODDSRATIO statement is available in PROC LOGSELECT in recent versions of SAS Viya.
It should work there since I believe it will give you access to the current or recent release of SAS Viya.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.