4.0

4.0 | 1 rating Rate this file 104 downloads (last 30 days) File Size: 2.48 KB File ID: #15472

McNemar est

by Giuseppe Cardillo

 

02 Jul 2007 (Updated 12 Nov 2008)

Code covered by BSD License  

Perform the McNemar test on a 2x2 matrix

Download Now | Watch this File

File Information
Description

In statistics, McNemar's test is a non-parametric method used on nominal
data to determine whether the row and column marginal frequencies are equal. It is named after Q. McNemar, who introduced it in 1947. It is applied to 2x2 contingency tables with a dichotomous trait with matched pairs of subjects.
This is only a simply function to perform the McNemar's chi-square with Yates'es correction. The function requires Statistics Toolbox because calls CHI2INV and CHI2CDF function.

Required Products Statistics Toolbox
MATLAB release MATLAB 7.3 (R2006b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
02 Jul 2007 Sarah Inowe

Hey Mr. Cardillo. What I am seeing is that you are doing some ?refried? of functions already published. Why you do not propose something really new?

20 Oct 2009 Skynet

Thanks for this file. I used it to confirm the results of my own calculations. Note that errors that you throw probably shouldn't use the term "Warning" in the error text, because that is misleading.

Please login to add a comment or rating.
Updates
24 Sep 2008

Improvement in input error handling. Statistics toolbox is no more required.

25 Sep 2008

mistake correction

12 Nov 2008

Changes in help section

Tag Activity for this File
Tag Applied By Date/Time
statistics Giuseppe Cardillo 22 Oct 2008 09:17:57
probability Giuseppe Cardillo 22 Oct 2008 09:17:57
mcnemar Giuseppe Cardillo 22 Oct 2008 09:17:57
test Giuseppe Cardillo 22 Oct 2008 09:17:57
nominal data Giuseppe Cardillo 22 Oct 2008 09:17:57
nonparametric Giuseppe Cardillo 22 Oct 2008 09:17:57
nominal data Cristina McIntire 12 Nov 2008 14:02:47
probability Cristina McIntire 12 Nov 2008 14:02:47
statistics Cristina McIntire 12 Nov 2008 14:02:47
mcnemars test Skynet 20 Oct 2009 18:10:26
machine learning Skynet 20 Oct 2009 18:10:33
mcnemar Skynet 20 Oct 2009 18:10:39
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com