Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Special SAS Data Sets

Example A.1: A TYPE=CORR Data Set Produced by PROC CORR

See Output A.1.1 for an example of a TYPE=CORR data set produced by the following SAS statements. Output A.1.2 displays partial output from the CONTENTS procedure, which indicates that the "Data Set Type" is 'CORR'.

   title 'Five Socioeconomic Variables';
   data SocEcon;
      title2 'Harman (1976), Modern Factor Analysis, 3rd ed';
      input pop school employ services house;
      datalines;
   5700     12.8      2500      270       25000
   1000     10.9       600       10       10000
   3400      8.8      1000       10        9000
   3800     13.6      1700      140       25000
   4000     12.8      1600      140       25000
   8200      8.3      2600       60       12000
   1200     11.4       400       10       16000
   9100     11.5      3300       60       14000
   9900     12.5      3400      180       18000
   9600     13.7      3600      390       25000
   9600      9.6      3300       80       12000
   9400     11.4      4000      100       13000
   ;
   proc corr noprint out=corrcorr;
   proc print;
   proc contents;
   run;

Output A.1.1: A TYPE=CORR Data Set Produced by PROC CORR
 
Five Socioeconomic Variables

Obs _TYPE_ _NAME_ pop school employ services house
1 MEAN   6241.67 11.4417 2333.33 120.833 17000.00
2 STD   3439.99 1.7865 1241.21 114.928 6367.53
3 N   12.00 12.0000 12.00 12.000 12.00
4 CORR pop 1.00 0.0098 0.97 0.439 0.02
5 CORR school 0.01 1.0000 0.15 0.691 0.86
6 CORR employ 0.97 0.1543 1.00 0.515 0.12
7 CORR services 0.44 0.6914 0.51 1.000 0.78
8 CORR house 0.02 0.8631 0.12 0.778 1.00

Output A.1.2: Contents of a TYPE=CORR Data Set
 
Five Socioeconomic Variables

The CONTENTS Procedure

Data Set Name: WORK.CORRCORR Observations: 8
Member Type: DATA Variables: 7
Engine: V8 Indexes: 0
Created: 10:36 Wednesday, April 28, 1999 Observation Length: 56
Last Modified: 10:36 Wednesday, April 28, 1999 Deleted Observations: 0
Protection:   Compressed: NO
Data Set Type: CORR Sorted: NO
Label: Pearson Correlation Matrix    

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

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