p value to z score
10 次查看(过去 30 天)
显示 更早的评论
How do I determine the z score from a p value? Thanks!
0 个评论
采纳的回答
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
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.
更多回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!