필터 지우기
필터 지우기

How to calculate 2-tailed P value using t value and degree of freedom?

조회 수: 9 (최근 30일)
Hi all, I have gotten the t value and degree of freedom of paired data in T-Test .I need to calculate the 2-tailed P value using t value and degree of freedom.I know that the function 'tcdf' can calculate 1-tailed P value.But I still don't know how to calculate 2-tailed P value. I will be very appreciate your answers. Thank you!

채택된 답변

Star Strider
Star Strider 2015년 2월 4일
You can simply cut to the chase and calculate it directly:
tdist2T = @(t,v) (1-betainc(v/(v+t^2),v/2,0.5)); % 2-tailed t-distribution
where ‘t’ is the t-statistic and ‘v’ the degrees-of-freedom.
  댓글 수: 4
William
William 2015년 2월 4일
Thank you very much.I am very appreciate your answers!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by