UCLA Academic Technology Services HomeServicesClassesContactJobs
Search

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

UCLA Researchers are invited to our Statistical Consulting Services
We recommend others to our list of Other Resources for Statistical Computing Help
These pages are Copyrighted (c) by UCLA Academic Technology Services


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.