Code covered by the BSD License  

Highlights from
McNemar est

4.0

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

McNemar est

by Giuseppe Cardillo

 

02 Jul 2007 (Updated 23 Dec 2009)

Perform the McNemar test on a 2x2 matrix

| 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.

You can visit my homepage http://home.tele2.it/cardillo
My profile on XING http://www.xing.com/go/invita/13675097
My profile on LinkedIN http://it.linkedin.com/in/giuseppecardillo

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

23 Dec 2009

Changes in description

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

Contact us at files@mathworks.com