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-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

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
  • 2017 views
  • 3 likes
  • 3 in conversation