BookmarkSubscribeRSS Feed
pradeepad
Calcite | Level 5

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.

3 REPLIES 3
ballardw
Super User

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.

stat_sas
Ammonite | Level 13

proc corr data=have outp=corp;

var var1;

with var2 var3.....;

run;

proc print;

run;

OsoGris
SAS Employee

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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 1378 views
  • 6 likes
  • 4 in conversation