Programming the statistical procedures from SAS

Correlation Transformation

Reply
Contributor
Posts: 40

Correlation Transformation

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

Trusted Advisor
Posts: 1,661

Re: Correlation Transformation

That's a very vague phrase "correlation transformation". Could you provide some more information about what it is you want to do?

Contributor
Posts: 40

Re: Correlation Transformation

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

Trusted Advisor
Posts: 1,661

Re: Correlation Transformation

You could use PROC STANDARD to standardize the variables ...

SAS Super FREQ
Posts: 3,546

Re: Correlation Transformation

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.

Contributor
Posts: 40

Re: Correlation Transformation

Hi Rick,

Do you have a phone number where I can call you to discuss around 1 PM EST?

Thanks!

Jadallah

SAS Super FREQ
Posts: 3,546

Re: Correlation Transformation

No. I do not give personal advice, but I am happy to answer questions on the online forums.

Ask a Question
Discussion stats
  • 6 replies
  • 327 views
  • 0 likes
  • 3 in conversation