Obtaining the P values for the t stat

83 次查看(过去 30 天)
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

采纳的回答

dpb
dpb 2020-6-10
p = 1-tcdf(t,n-1) % Probability of larger t-statistic
requires Statistics Toolbox...
  2 个评论
Jamol Bahromov
Jamol Bahromov 2021-9-17
Shouldn't p multiplied by two for a two-tailed p-value?
O.Hubert
O.Hubert 2022-10-24
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).

请先登录,再进行评论。

更多回答(0 个)

标签

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by