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

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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