BookmarkSubscribeRSS Feed
Kyra
Quartz | Level 8

Hi,

 

Can you please direct me to SAS example where

1. We study correlation between one ordinal and one nominal variable.

2. We study correlation between two ordinal variable.

 

Thanks,

5 REPLIES 5
Reeza
Super User

I don't think those are 'correlation'. They may be chi square tables?

 

PGStats
Opal | Level 21

Proc freq computes many measures of association, for different purposes. See

 

https://documentation.sas.com/?docsetId=procstat&docsetTarget=procstat_freq_details22.htm&docsetVers... 

PG
MichaelL_SAS
SAS Employee

I think @PGStats suggestion to consider using the measures of association supported by PROC FREQ is a good one. 

 

I'll just add that for the case of two ordinal variables, if you can assume their values are derived from an unobserved bivariate normal distribution you could estimate the polychoric correlation by using PROC CORR. 

Kyra
Quartz | Level 8
Thank you very much ! I will look into it. However, what do you think about
Spearman correlation?
MichaelL_SAS
SAS Employee

Yes the Spearman rank order correlation is another option. PROC FREQ also supports both of these measures of association. You can use the PLCORR option in the TABLES statement to request the polychoric correlation coefficient and the MEASURES option (as mentioned in @PGStats response) will request the Spearman coefficient. 

 

You can Example 3.8 in the PROC FREQ documentation for an example using the MEASURES option. 

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 5 replies
  • 665 views
  • 4 likes
  • 4 in conversation