Home > freetb4matlab > statistics > tests > mcnemar_test.m

mcnemar_test

PURPOSE ^

% For a square contingency table @var{x} of data cross-classified on

SYNOPSIS ^

function [pval, chisq, df] = mcnemar_test (x)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {[@var{pval}, @var{chisq}, @var{df}] =} mcnemar_test (@var{x})
% For a square contingency table @var{x} of data cross-classified on
% the row and column variables, McNemar's test can be used for testing
% the null hypothesis of symmetry of the classification probabilities.
%
% Under the null, @var{chisq} is approximately distributed as chisquare
% with @var{df} degrees of freedom.
%
% The p-value (1 minus the CDF of this distribution at @var{chisq}) is
% returned in @var{pval}.
%
% If no output argument is given, the p-value of the test is displayed.
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003