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

3 visualizaciones (últimos 30 días)
Alwin
Alwin el 1 de Jun. de 2012
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.

Respuesta aceptada

Tom Lane
Tom Lane el 1 de Jun. de 2012
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.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by