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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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