12-15-2014 10:04 AM
I have around 1500 variables, I would like to check the correlation between variabes before I start using the variables for modelling. is there any smarter way to do it that doesn't take a long time to run, basically I wan't to remove anthing with a high correlation > 0.8 for example! Kind of macro but doesn't use do loop as I have millions of rows (8 Millioms) to process and our system is quite slow
Your help would be much appreciated..
12-15-2014 10:14 AM
is there any smarter way to do it that doesn't take a long time to run,
I'm going to say the answer is NO.
The reason I say this is that, in my opinion, looking at correlations is not the smartest way to proceed here. A better way to proceed, in my opinion, is to fit a PLS model to the data and determine combinations of your original variables that are predictive of the response. PLS takes into account the correlations between your variables better than most modelling techniques. Your method of looking at correlations between variables ignores whether or not the variable is predictive of the response.
12-15-2014 02:38 PM
SAS Documentation for Proc PLS is a good place to start.