Code covered by the BSD License  

Highlights from
ManHaenORtest

Be the first to rate this file! 1 Download (last 30 days) File Size: 4.03 KB File ID: #6200

ManHaenORtest

by Antonio Trujillo-Ortiz

 

05 Nov 2004 (Updated 22 Nov 2004)

Mantel-Haenszel odds ratio inference for k strata of 2x2 tables.

| Watch this File

File Information
Description

This test performs an odds ratio inference for k strata of 2x2 tables. Mantel and Haenszel (1959) proposed an approximate test of the null hypothesis which specifies that within each stratum, the success probabilities are equal. This is the same to test that there is a common odds ratio and it is equal to 1. The null hypothesis allows for the common success probabilities to differ from stratum to stratum.

It needs to input the X-data matrix (size kx4) of the observed frequency cells (a,b,c,d) for each stratum, t- desired test [t = 1, one-tail; t = 2, two-tail (default)] and alpha-significance level (default = 0.05).

The outputs are a table with percentage of success of samples on each stratum, and a table with the Mantel-Haenszel statistic, number of strata and P-value.

MATLAB release MATLAB 5.3 (R11)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
10 Nov 2004

It was added an appropriate format to cite this file.

22 Nov 2004

Text was improved.

Tag Activity for this File
Tag Applied By Date/Time
statistics Antonio Trujillo-Ortiz 22 Oct 2008 07:34:55
probability Antonio Trujillo-Ortiz 22 Oct 2008 07:34:55
mantelhaenszel test Antonio Trujillo-Ortiz 22 Oct 2008 07:34:55
inference Antonio Trujillo-Ortiz 22 Oct 2008 07:34:55
odds ratio Antonio Trujillo-Ortiz 22 Oct 2008 07:34:55
stratum Antonio Trujillo-Ortiz 22 Oct 2008 07:34:55
2x2 tables Antonio Trujillo-Ortiz 22 Oct 2008 07:34:55

Contact us at files@mathworks.com