z2p

版本 1.0.0.0 (1.5 KB) 作者: Scott McKinney
Converts z-statistic to p-value by integrating the standard normal pdf
431.0 次下载
更新时间 2010/9/30

查看许可证

Converts normally distributed z-statistic to one- or two-tailed p-value
by integrating the standard normal pdf. If no "tails" value is specified, z2p computes the two-tailed value by default. The output p is the same size as z, which can be a scalar, vector, or matrix.

Inputs:
z: normally distributed z-statistic (positive or negative)
(optional) tailed: the number of tails over which to compute the probability value. (Note: by symmetry of the normal distribution, the two-tailed p-value is twice the one-tailed value.)

This function is useful for hypothesis testing when the test statistic is normally distributed.

引用格式

Scott McKinney (2024). z2p (https://www.mathworks.com/matlabcentral/fileexchange/28908-z2p), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2009a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Hypothesis Tests 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0