Programming the statistical procedures from SAS

Proc Corr output

Reply
Occasional Contributor
Posts: 5

Proc Corr output

In SAS proc corr, I want the output to show only Pearson Correlation Coefficient. By default, the output also shows the following :- Prob > |r| under H0: Rho=0 and Number of observations. How do I do this? Thanks for your help.

Grand Advisor
Posts: 10,043

Re: Proc Corr output

You can use the OUTP= option in Proc Corr to send the Pearson statistics to an output data set and then print what you need from there.

Trusted Advisor
Posts: 1,195

Re: Proc Corr output

proc corr data=have outp=corp;

var var1;

with var2 var3.....;

run;

proc print;

run;

SAS Employee
Posts: 18

Re: Proc Corr output

There is also a NOPROB option on the PROC CORR statement that will suppress the p-values in the default output.

Here is a link containing the PROC CORR documentation - - Base SAS(R) 9.4 Procedures Guide: Statistical Procedures, Third Edition

Ask a Question
Discussion stats
  • 3 replies
  • 187 views
  • 6 likes
  • 4 in conversation