Obtaining the P values for the t stat

45 visualizaciones (últimos 30 días)
Ahmed Abdulla
Ahmed Abdulla el 10 de Jun. de 2020
Comentada: Km Shraddha el 14 de En. de 2025
I have both the tstat and the degrees of freedom, is there a quick way to find the P value of a two tailed hypothesis at a significance of 0.05

Respuesta aceptada

dpb
dpb el 10 de Jun. de 2020
p = 1-tcdf(t,n-1) % Probability of larger t-statistic
requires Statistics Toolbox...
  2 comentarios
Jamol Bahromov
Jamol Bahromov el 17 de Sept. de 2021
Shouldn't p multiplied by two for a two-tailed p-value?
O.Hubert
O.Hubert el 24 de Oct. de 2022
It should be noted that t should be positive to obtain sensible results and yes, p should be multiplied by 2 to get a two-tailed test.
To have t positive, replace it by abs(t).

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by