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

조회 수: 36 (최근 30일)
Ahmed Abdulla
Ahmed Abdulla 2020년 6월 5일
답변: Jeff Miller 2020년 6월 5일
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.

채택된 답변

Jeff Miller
Jeff Miller 2020년 6월 5일
critt = tinv(1-alpha,v)

추가 답변 (1개)

Edgar Guevara
Edgar Guevara 2020년 6월 5일
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
Ahmed Abdulla
Ahmed Abdulla 2020년 6월 5일
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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by