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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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
  • 1014 views
  • 0 likes
  • 2 in conversation