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.
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.
proc corr data=have outp=corp;
var var1;
with var2 var3.....;
run;
proc print;
run;
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
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.