Hello,
I have data that I need to do a correlation transformation for. What is the general code to complete a correlation transformation? After I receive this, I will try it with my data.
Thanks very much!
Jadallah
That's a very vague phrase "correlation transformation". Could you provide some more information about what it is you want to do?
Hi Paige,
I have a regression with 5 variables in it. I need to do a correlation transformation to standardize the variables. Should I use proc transreg or possibly something like the following?
Data step2;
set "put your data file here";
/* now redefine new variables */
x2n = (x2 - x2bar) / x2sd * 1/sqrt(n-1);
Thanks!
Jadallah
You could use PROC STANDARD to standardize the variables ...
PROC STDIZE has many variable transformations. See the complete list at SAS/STAT(R) 13.1 User's Guide
Are you sure that you want 1/sqrt(n-1) as part of the transformation? The usual standardization is (x-xbar)/std, which is METHOD=STD.
Hi Rick,
Do you have a phone number where I can call you to discuss around 1 PM EST?
Thanks!
Jadallah
No. I do not give personal advice, but I am happy to answer questions on the online forums.
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.
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.