This m-file performs the Bowker's test for symmetry. It is an extension of the McNemar test to a KxK situation. There are now K response categories for the two dependent samples.
The null hypothesis is that the probabilities in the square table satisfy symmetry or that there is no sifnificant shift from one response category to another from sample 1 to sample 2.
When the null hypothesis of symmetry is true, then B will have a Chi-square distribution with K(K-1) degrees of freedom. This is the basis of the proposed test by Bowker (1948). If K=2, then B simplifies to the McNemar test statistic.
It need to input X-data matrix defined by the KxK observed frequency cells, t-desired test [t = 1, one-tail; t = 2, two-tail (default)], and alpha-significance level (default = 0.05).
The output is a table with the proportion of success for the dependent samples and the P-values using and not correction for discontinuity.
Cite As
Antonio Trujillo-Ortiz (2024). Bowkertest (https://www.mathworks.com/matlabcentral/fileexchange/6322-bowkertest), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | It was added an appropriate format to cite this file. |