Finding the t values of the Student's t test (t1-α,ν)

36 vues (au cours des 30 derniers jours)
Ahmed Abdulla
Ahmed Abdulla le 5 Juin 2020
I have both 1-α and i have v and i was wondering if there is a way to get the t-value directly in Matlab rather than reffering to the tables.

Réponse acceptée

Jeff Miller
Jeff Miller le 5 Juin 2020
critt = tinv(1-alpha,v)

Plus de réponses (1)

Edgar Guevara
Edgar Guevara le 5 Juin 2020
The t-value is inside the STAT structure, consider the following example:
X = rand([100, 1]);
Y = rand([100, 1]);
[H,P,CI,STATS] = ttest2(X,Y);
STATS.tstat
  1 commentaire
Ahmed Abdulla
Ahmed Abdulla le 5 Juin 2020
In my case Im calcuating the t value to get the bonferroni interval so the 1-α is actually α/2k where k is the number of predictors so using the ttest wont yield me the same t value im looking for so i wanted to know if there is a way to just input the 1-α value and the v value to get a T value

Connectez-vous pour commenter.

Catégories

En savoir plus sur Mathematics dans Help Center et File Exchange

Tags

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by