Chapter Contents

Previous

Next
The CORR Procedure

Example 4: Storing Partial Correlations in an Output Data Set


Procedure features:
PROC CORR statement options:
COV
KENDALL
NOSIMPLE
OUTP=
SPEARMAN
PARTIAL statement
VAR statement
Data set: FITNESS

This example

See OUTP= Data Set with Pearson Partial Correlations for a listing of the output data set.


Program

options nodate pageno=1 linesize=120 pagesize=60;
 Note about code
proc corr data=fitness spearman kendall cov nosimple
          outp=fitcorr;
 Note about code
   var weight oxygen runtime;
 Note about code
   partial age;
 Note about code
   label age      = 'Age of subject'
         weight   = 'Wt in kg'
         runtime  = '1.5 mi in minutes'
         oxygen   = 'O2 use';
 Note about code
   title1 'Partial Correlations for a Fitness and Exercise Study';
run;


Output
The report includes a partial covariance matrix and partial correlations for Pearson's rho, Spearman's rho, and Kendall's tau-b. The p-values for Kendall's tau-b are not available. Because observations with missing data are excluded, PROC CORR uses 28 observations to calculate correlation coefficients. [HTML Output]
 [Listing Output]


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.