Where is the t statistic reported for [R,P]=corrcoef(...)?

3 次查看(过去 30 天)
Hi. From the Matlab help I know that for [R,P]=corrcoef(...) the p-value is calculated on the basis of the t statistic: "The p-value is computed by transforming the correlation to create a t statistic having n-2 degrees of freedom, where n is the number of rows of X." Does anyone know if there is a possibility to access the t statistic? For instance the regress function for multiple linear regression reports the f statistc in 'stats'. I am looking for something like that.
Thanks.

采纳的回答

Tom Lane
Tom Lane 2012-6-1
If you are comfortable editing the corrcoef.m file, you can add Tstat as an additional output. This variable is computed inside the file but not returned.
Another alternative is to see how Tstat is computed and do that yourself outside the corrcoef.m file.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Linear Regression 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by