chi2cont

版本 1.0.0.0 (1.6 KB) 作者: Mark
chi2cont performs a chi-square test for an m-by-n contingency table
926.0 次下载
更新时间 2014/1/22

查看许可证

h = chi2cont(x) performs a chi-square test on the data in the m-by-n contingency table x. The null hypothesis is that there is no difference in the row variable distribution ('outcomes') between the columns ('treatments'). The result of the test is returned in h. h=1 indicates a rejection of the null hypothesis at the 5% significance level.h=0 indicates that the null hypothesis can not be rejected at the 5%
significance level.

h = chi2cont(x,alpha) performs the test at the (100*alpha)% significance level. The default when unspecified is alpha=0.05;

[h,p] = chi2cont(...) returns the p value of the test. The p value is the probability, under the null hypothesis, of observing a value as extreme or more extreme of the chi-square test statistic.

[h,p,X2] = chi2cont(...) returns the chi-square test statistic.

引用格式

Mark (2024). chi2cont (https://www.mathworks.com/matlabcentral/fileexchange/45203-chi2cont), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2012b
兼容任何版本
平台兼容性
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