The CORR Procedure

Example 1.3 Analysis Using Fisher’s z Transformation

The following statements request Pearson correlation statistics by using Fisher’s z transformation for the data set Fitness:

proc corr data=Fitness nosimple fisher;
   var weight oxygen runtime;
run;

The NOSIMPLE option suppresses the table of univariate descriptive statistics. By default, PROC CORR displays the "Pearson Correlation Coefficients" table in Output 1.3.1.

Output 1.3.1: Pearson Correlations

The CORR Procedure

Pearson Correlation Coefficients
Prob > |r| under H0: Rho=0
Number of Observations
 WeightOxygenRunTime
Weight
1.00000
 
31
-0.15358
0.4264
29
0.20072
0.2965
29
Oxygen
-0.15358
0.4264
29
1.00000
 
29
-0.86843
<.0001
28
RunTime
0.20072
0.2965
29
-0.86843
<.0001
28
1.00000
 
29


Using the FISHER option, the CORR procedure displays correlation statistics by using Fisher’s z transformation in Output 1.3.2.

Output 1.3.2: Correlation Statistics Using Fisher’s z Transformation

Pearson Correlation Statistics (Fisher's z Transformation)
VariableWith VariableNSample CorrelationFisher's zBias AdjustmentCorrelation Estimate95% Confidence Limitsp Value for
H0:Rho=0
WeightOxygen29-0.15358-0.15480-0.00274-0.15090-0.4902890.2282290.4299
WeightRunTime290.200720.203480.003580.19727-0.1824220.5257650.2995
OxygenRunTime28-0.86843-1.32665-0.01608-0.86442-0.935728-0.725221<.0001


The table also displays confidence limits and a p-value for the default null hypothesis upper H 0 colon rho equals rho 0. See the section Fisher’s z Transformation for details on Fisher’s z transformation.

The following statements request one-sided hypothesis tests and confidence limits for the correlations using Fisher’s z transformation:

proc corr data=Fitness nosimple nocorr fisher (type=lower);
   var weight oxygen runtime;
run;

The NOSIMPLE option suppresses the "Simple Statistics" table, and the NOCORR option suppresses the "Pearson Correlation Coefficients" table.

Output 1.3.3 displays correlation statistics by using Fisher’s z transformation.

Output 1.3.3: One-Sided Correlation Analysis Using Fisher’s z Transformation

The CORR Procedure

Pearson Correlation Statistics (Fisher's z Transformation)
VariableWith VariableNSample CorrelationFisher's zBias AdjustmentCorrelation EstimateLower 95% CLp Value for
H0:Rho<=0
WeightOxygen29-0.15358-0.15480-0.00274-0.15090-0.4419430.7850
WeightRunTime290.200720.203480.003580.19727-0.1220770.1497
OxygenRunTime28-0.86843-1.32665-0.01608-0.86442-0.9274081.0000


The FISHER(TYPE=LOWER) option requests a lower confidence limit and a p-value for the test of the one-sided hypothesis upper H 0 colon rho less-than-or-equal-to 0 against the alternative hypothesis upper H 1 colon rho greater-than 0. Here Fisher’s z, the bias adjustment, and the estimate of the correlation are the same as for the two-sided alternative. However, because TYPE=LOWER is specified, only a lower confidence limit is computed for each correlation, and one-sided p-values are computed.

Last updated: April 10, 2023