Obtaining the P values for the t stat

324 views (last 30 days)
Ahmed Abdulla
Ahmed Abdulla on 10 Jun 2020
Commented: Jamol Bahromov on 17 Sep 2021
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

Accepted Answer

dpb
dpb on 10 Jun 2020
p = 1-tcdf(t,n-1) % Probability of larger t-statistic
requires Statistics Toolbox...
  1 Comment
Jamol Bahromov
Jamol Bahromov on 17 Sep 2021
Shouldn't p multiplied by two for a two-tailed p-value?

Sign in to comment.

More Answers (0)

Tags

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by