フィルターのクリア

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