BookmarkSubscribeRSS Feed
dode
Fluorite | Level 6
How to check for multicolinearty between categorical variables. What is code in SAS?
3 REPLIES 3
Ksharp
Super User

In model, categorical variables will encode as 0 1 and combine into design matrix .

I think it is hard to judge multicolinearty. But sas has ability to eliminate the non-significant categorical variables.

like:

 

proc glmselect;

class sex/split;

.......

Rick_SAS
SAS Super FREQ

For purely nominal variables, you can use PROC FREQ and the chi-square statistic to test the association between variables. 


If the variables are ordinal (they can be ordered, such as 'small', 'medium', and 'large'), you can use PROC FREQ to compute tetrachoric or polychoric correlations between discrete categories. Use the PLCORR options on the TABLES stmt.

 

Lastly, for multivariate statistics, you can use PROC CORRESP to study correlations between categorical variables. Roughly speaking, correspondence analysis for discrete variables is similar to principal component analysis for continuous variables, except contributions to the chi-square statistic are used instead of the variance.

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!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 1512 views
  • 3 likes
  • 3 in conversation