BookmarkSubscribeRSS Feed
ftsr
Calcite | Level 5
I was running SAS on a set of 10 observations each given a rating between 1-3, and another variable A, B or C is assigned to each of them.

e.g.
Obs F1 F2
Ob1 A 1
Ob2 A 3
Ob3 B 3
Ob4 C 2
Ob5 C 3
Ob6 B 1
Ob7 A 3
Ob8 B 3

I used the following to obtain Somers'D
"Proc freq data=xxx;
tables F1*F2 / measures;
run;"

But it comes out differently from the Somers'D in the output of the logistic function
Proc logistic data=xxx;
class F1;
model F1=F2 / rsquare stb;
run;

Then I tried "model F2=F1", the Somers'D still doesn't agree with Freq.

Could anyone help me to understand this please?
1 REPLY 1
Doc_Duke
Rhodochrosite | Level 12
Based on the documentation, it looks like FREQ applies a correction for ties and LOGISTIC does not. Your example has at least one tie. Try new sample data without ties.

Doc Muhlbaier
Duke

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1638 views
  • 0 likes
  • 2 in conversation