10-20-2014 10:24 AM
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!
10-20-2014 11:03 AM
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?
set "put your data file here";
/* now redefine new variables */
x2n = (x2 - x2bar) / x2sd * 1/sqrt(n-1);
10-20-2014 11:21 AM
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.