Hi All,
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..
Many Thanks
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.
Thank you Paige...any documentation on PLS results interpretation?
SAS Documentation for Proc PLS is a good place to start.
Thank you..so what do you think of Proc Reg to get the VIF?
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!
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.