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?
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.