Obtaining the P values for the t stat

212 ビュー (過去 30 日間)
Ahmed Abdulla
Ahmed Abdulla 2020 年 6 月 10 日
コメント済み: O.Hubert 2022 年 10 月 24 日
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 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by