Programming the statistical procedures from SAS

How can i get t-statistic from proc corr?

Reply
N/A
Posts: 0

How can i get t-statistic from proc corr?

I just wonder if i can get t-statistic from proc corr. I tried many ways to make sas show t-statistic instead of p-value in proc corr because i need t-statistic to do an analysis. I don't know whether i can get it or i need to use another way.

Thank in advance. Your help is always appreciated.

Chaoji
Super Contributor
Posts: 281

Re: How can i get t-statistic from proc corr?

I don't think PROC CORR was designed to produce t-statistics, as it doesn't do t-tests.

Depending on specifically what t-tests you are interested in, you could use PROC MEANS, PROC TTEST and probably a dozen other SAS procedures.
Trusted Advisor
Posts: 2,114

Re: How can i get t-statistic from proc corr?

I don't think that CORR will do that directly. You can readily output the correlation coefficient and the sample size and compute one in a subsequent data step. See

http://www.xycoon.com/ttest_statistic.htm
Ask a Question
Discussion stats
  • 2 replies
  • 121 views
  • 0 likes
  • 3 in conversation