BookmarkSubscribeRSS Feed
fastandcurious
Obsidian | Level 7

Hello,

I recently did a SAS Statistics 1 exercise (st107d05.sas) and got different results for the model fit statistics (Everything else was the same and displayed in a different order, I assume it's because I didn't apply a format)

 

I was wondering if there is a difference with the following reference coding techniques because I always thought they were same:

 

My code & some output

proc logistic data=STAT1.safety plots(only)=(effect oddsratio);
class Size (ref="1") Region (ref="Asia")/param=ref;
model unsafe (event="1")=Weight Region Size/ clodds=pl selection=backward;
UNITS weight= -1;
store issafe;

title 'LOGISTIC MODEL (3): Backwards Elimination';
run;

 

fastandcurious_0-1691497118509.png

 

 

Solution code & some output

proc logistic data=STAT1.safety plots(only)=(effect oddsratio);
class Region (param=ref ref='Asia')
Size (param=ref ref='1');
model Unsafe(event='1') = Weight Region Size / clodds=pl selection=backward;
units Weight = -1;
store isSafe;
title 'Logistic Model: Backwards Elimination';
run;

 

fastandcurious_1-1691497199015.png

 

Thank you!

3 REPLIES 3
PaigeMiller
Diamond | Level 26

I recently did a SAS Statistics 1 exercise (st107d05.sas) and got different results for the model fit statistics

 

It looks to me like you got the exact same model fit statistics for both runs. I don't see a difference, do you? Please explain futher.

--
Paige Miller
fastandcurious
Obsidian | Level 7

Sorry, thanks for the catch! I used the wrong snippet. The solution  results should be this:

fastandcurious_0-1691498275310.png

 

fastandcurious
Obsidian | Level 7
I'm sorry I restarted the program and I think I was comparing the wrong table models with each other.

SAS Innovate 2025: Call for Content

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!

Submit your idea!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 517 views
  • 0 likes
  • 2 in conversation