필터 지우기
필터 지우기

p value to z score

조회 수: 19 (최근 30일)
Nuchto
Nuchto 2012년 8월 2일
댓글: Star Strider 2020년 8월 25일
How do I determine the z score from a p value? Thanks!

채택된 답변

Star Strider
Star Strider 2012년 8월 3일
편집: Star Strider 2012년 8월 3일
Using the ‘erfcinv’ function (part of core MATLAB) and writing it as an anonymous function:
z = @(p) -sqrt(2) * erfcinv(p*2);
where ‘p’ is the probability.
So:
zscore = z([0.025 0.5 0.975])
produces:
zscore =
-1.9600e+000 0.0000e+000 1.9600e+000
  댓글 수: 12
Rik
Rik 2020년 8월 25일
A bit late maybe, but I did end up putting it on the FEX, so here is the promised link: BlandAltmanPlot. Once Mathworks gets the example tab working again for github submission, you will even be able to see a nice doc.
Star Strider
Star Strider 2020년 8월 25일
Rik —
Interesting function! Thanks for the citation!

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

추가 답변 (1개)

Oleg Komarov
Oleg Komarov 2012년 8월 3일
편집: Oleg Komarov 2012년 8월 3일
Use icdf() from the Statistics Toolbox.
For (standard) normal:
icdf('normal',[0.005 0.995],0,1)
  댓글 수: 2
Nuchto
Nuchto 2012년 8월 3일
Mmm, could you put an example? How to compute z from p = 0.001?
Oleg Komarov
Oleg Komarov 2012년 8월 3일
Which distribution?

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

Community Treasure Hunt

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

Start Hunting!

Translated by