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.
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!
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.