Type=Corr SAS
Creating a Type=Corr Data Set From an Existing Raw Data File PROC CORR NOMISS DATA=KLW OUTP=GRADES; VAR CLASSWRK MIDTERM FINAL_EX; PROC PRINT;
The Output OBS _TYPE_ _NAME_ CLASSWRK MIDTERM FINAL_EX 1 MEAN 94.5333 87.4000 89.0000 2 STD 5.4493 7.7993 9.3121 3 N 15.0000 15.0000 15.0000 4 CORR CLASSWRK 1.0000 0.6585 0.7615 5 CORR MIDTERM 0.6585 1.0000 0.5557 6 CORR FINAL_EX 0.7615 0.5557 1.0000
You Have Somebody’s Corr Matrix but not their Raw Data DATA SOL(TYPE=CORR); LENGTH _NAME_ $ 11; *Specify the length of the longest variable name, in this case, misanthropy, 11; INPUT _TYPE_ $ _NAME_ $ idealism relativism misanthropy gender attitude; CARDS; corr idealism 1.0000 -0.0870 -0.1395 -0.1011 0.0501 corr relativism -0.0870 1.0000 0.0525 0.0731 0.1581 corr misanthropy -0.1395 0.0525 1.0000 0.1504 0.2259 corr gender -0.1011 0.0731 0.1504 1.0000 -0.1158 corr attitude 0.0501 0.1581 0.2259 -0.1158 1.0000 N . 153 153 153 153 153 mean . 3.64926 3.35810 2.32157 1.18954 2.37276 std . 0.53439 0.57596 0.67560 0.39323 0.52979 ; *Note the use of a period for missing value for _NAME_ on row of _TYPE_ N, mean, and std.; PROC REG; MODEL attitude = idealism -- gender / STB SCORR2; run; You Have Somebody’s Corr Matrix but not their Raw Data
SPSS Yes, SPSS will do this too. See http://core.ecu.edu/psyc/wuenschk/SPSS/CorrMatrix_Input2SPSS.pdf