SAS Procedures

Help using Base SAS procedures
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
yuchendi
Calcite | Level 5

Hello,

 

Could anyone help clarify how the p-value is calculated for Pearson correlation coefficient using PROC CORR procedure? I know the null hypothesis is r=0, but not sure if it's calculated using 2-sided t-test or 1-sided F-test, or anything else.

 

I have looked through all materials and discussion threads posted online but haven't found the answer to my question. 

 

Thanks a lot,

 

Erin

1 ACCEPTED SOLUTION

Accepted Solutions
Rick_SAS
SAS Super FREQ

The documentation for PROC CORR contains a details section on the Pearson correlation. The definition of the t statistic that is used to test for r=0 is specified at the bottom of the page:

 

 

View solution in original post

5 REPLIES 5
WarrenKuhfeld
Ammonite | Level 13

two sided t although t**2 = F so it does not matter.

yuchendi
Calcite | Level 5

Thank you very much.

Rick_SAS
SAS Super FREQ

The documentation for PROC CORR contains a details section on the Pearson correlation. The definition of the t statistic that is used to test for r=0 is specified at the bottom of the page:

 

 

yuchendi
Calcite | Level 5
Thank you very much for the reference.
Nradulovich
Calcite | Level 5

Hello, 

and thanks for the valuable information. 

 

Does anyone know how to get the t-test values for testing the population correlation coefficient from PROC CORR, or other PROC for that matter? That is, the actual value of 

 

Capture.PNG

I have saved the correlation coefficients (r) generated by PROC CORR and then coded the formula myself. But isn't there an easier way to do it?

 

Thanks.

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 7083 views
  • 0 likes
  • 4 in conversation