SAS Code Fragments
Saving a Correlation Matrix as a Data File

options ls=80 nocenter ;

data test;
  input x y z;
cards;
1 4 7
4 2 9
3 5 2
7 1 3
;
run;

proc corr data=test outp=out1;
  var x y z;
run;


proc print data=out1;
run;

proc contents data=out1;
run;

How to cite this page

Report an error on this page or leave a comment

The content of this web site should not be construed as an endorsement of any particular web site, book, or software product by the University of California.