UK-based online statistics and data analysis support for USA, UK, and international clients. No exams, no impersonation, no fabricated data.
Chi-Square and Categorical Data Tests

Mantel Haenszel Test: Formula, Interpretation, Calculator, Python, R, SPSS,and Excel Guide

Stratified 2 × 2 analysis for a common adjusted association Mantel Haenszel Test: Formula, Calculator, Interpretation, Python, R, SPSS and Excel Guide Mantel Haenszel Test is...

Statistics guide Ethical learning support SPSS/R/Python/Excel friendly
Mantel Haenszel Test: Formula, Interpretation, Calculator, Python, R, SPSS,and Excel Guide

Stratified 2 × 2 analysis for a common adjusted association

Mantel Haenszel Test: Formula, Calculator, Interpretation, Python, R, SPSS and Excel Guide

Mantel Haenszel Test is the classic stratified method for combining several 2 × 2 tables into one adjusted association test and a common odds-ratio estimate. This guide explains the hypotheses, formulas, interpretation, calculator logic, Python, R, SPSS and Excel workflows, APA reporting, chart-based explanation and downloads through a worked analysis of the association between sex and final-pass status adjusted for study-time strata.

Four study-time strata
649 observations
MH χ² = 0.9333
Common OR = 0.7999

Mantel Haenszel Test Model Overview

Mantel Haenszel Test is used when the same 2 × 2 association is observed repeatedly across several strata and the analyst wants a single adjusted test and a pooled effect estimate. Instead of collapsing everything into one table and ignoring the stratifying variable, the method respects the stratum structure and asks whether there is a common association after controlling for the stratification factor.

What question does the Mantel Haenszel Test answer?

In this worked example, the research question is whether the association between sex and G3 pass remains after adjusting for studytime. Each study-time level forms a separate 2 × 2 table, and the Mantel Haenszel procedure combines them into a common adjusted result.

H0: θMH = 1   versus   H1: θMH ≠ 1

What does the common odds ratio mean?

The Mantel Haenszel common odds ratio summarizes the adjusted odds association across strata. A value of 1 indicates no association after adjustment, a value below 1 indicates lower adjusted odds in the numerator group, and a value above 1 indicates higher adjusted odds. In the current workbook, the male-versus-female adjusted common odds ratio is 0.7999.

Worked example at a glance

The four study-time strata contain separate male/female by pass/fail tables. The verified Mantel Haenszel statistic is 0.9333 with p = 0.3340. The common odds ratio is 0.7999 with a 95% confidence interval of 0.5102 to 1.2542. Because the interval includes 1 and the p-value is well above .05, the adjusted association is not statistically significant.

Overview conclusion: after adjusting for study-time strata, the data do not show statistically significant evidence that sex and final-pass status are associated. The detailed formulas, stratum tables, chart interpretations, software workflows and reporting templates are given below.
AdvertisementGoogle AdSense top placement reserved here

Quick Answer: Mantel Haenszel Test Result

The Mantel Haenszel Test combines four study-time-specific 2 × 2 tables to estimate one adjusted association between sex and pass status. The common-effect estimate is below 1, but the evidence is not statistically significant.

Total sample size649
MH statistic0.9333
P-value0.3340
Common odds ratio0.7999

Test summary

  • Procedure: Mantel Haenszel common odds-ratio test
  • Strata: studytime = 1, 2, 3, 4
  • Statistic: MH χ² = 0.9332565
  • P-value: 0.3340182
  • Adjusted effect: common OR = 0.7999116
  • 95% CI: 0.5101770 to 1.2541894

Substantive meaning

  • The adjusted male odds of passing are estimated to be about 20% lower than the female odds.
  • The confidence interval includes 1, so that reduction is not precise enough to declare a clear adjusted effect.
  • The study-time strata do not all have identical raw patterns, but the common-effect summary remains near no effect.
  • The overall adjusted evidence is weak rather than decisive.
Best interpretation: after controlling for study time, the observed sex difference in pass odds is small to moderate in direction but not statistically reliable in this dataset.
Important reporting point: the Mantel Haenszel Test assumes that a common odds ratio is meaningful across strata. That assumption is usually checked separately with a Breslow Day Test before the common effect is emphasized.

Table of Contents

  1. Research question, hypotheses and data design
  2. When to use the Mantel Haenszel Test
  3. Mantel Haenszel Test formula and calculation
  4. Variables and data dictionary
  5. Stratum tables and complete results
  6. Mantel Haenszel versus chi-square and crude analysis
  7. Mantel Haenszel Test calculator workflow
  8. Python and R chart interpretations
  9. Python, R, SPSS and Excel workflows
  10. Expandable software code
  11. Assumptions, limitations and advanced interpretation
  12. APA reporting for the Mantel Haenszel Test
  13. Common mistakes and how to correct them
  14. Reports and worked Excel download
  15. Related Salar Cafe guides
  16. Frequently asked questions
  17. Conclusion

Research Question, Hypotheses and Data Design

Exposure variablesex with male and female categories.
Outcome variableG3 pass coded as pass (G3 ≥ 10) versus fail (G3 < 10).
Stratification variablestudytime with four levels used to control the association.

Research question

Is there an association between sex and final-pass status after adjusting for differences in study-time strata?

Null and alternative hypotheses

HypothesisStatistical statementMeaning
Null hypothesisH0: θMH = 1The common adjusted odds ratio across strata equals one.
Alternative hypothesisH1: θMH ≠ 1There is a non-null adjusted association after controlling for study time.

Why this is a stratified analysis

Each study-time level creates its own 2 × 2 table. A simple chi-square test of independence on the collapsed table would ignore possible confounding by study time. The Mantel Haenszel Test preserves the stratum structure and produces an adjusted estimate.

Current data design

The workbook contains 649 students. The observed strata are studytime 1, 2, 3 and 4. Within each stratum, the table is ordered as male pass a, male fail b, female pass c and female fail d. That orientation matters because it determines the direction of the odds ratio.

Methods statement: “A Mantel Haenszel common odds-ratio analysis was used to examine the association between sex and final-pass status while adjusting for study-time strata.”

When to Use the Mantel Haenszel Test

Use the Mantel Haenszel Test when

  • You have several 2 × 2 tables representing the same exposure-outcome relationship across strata.
  • You want an adjusted association after controlling for one categorical confounder.
  • The outcome and exposure are both binary within each stratum.
  • A common odds-ratio summary is scientifically meaningful.
  • You want a transparent stratified alternative to a regression model.

Choose another method when

  • The strata-specific effects differ strongly and no common effect is appropriate.
  • You need to control for several covariates simultaneously.
  • The outcome is continuous rather than binary.
  • The table is not 2 × 2 within each stratum.
  • You need model-based estimation with interactions or adjusted predictions.

Simple selection logic

Question 1Do you have repeated 2 × 2 tables?

If yes, a stratified method may be suitable.

Question 2Is there one stratifying confounder?

If yes, the Mantel Haenszel Test is often a good first adjusted analysis.

Question 3Is a common odds ratio reasonable?

If yes, combine the strata; otherwise examine heterogeneity or use a regression model.

Useful companion topics are chi-square test, chi-square test of homogeneity, Cramér’s V and logistic regression.

Mantel Haenszel Test Formula and Calculation

The Mantel Haenszel procedure uses each stratum's observed cell count and expected count under the null, then combines them into one chi-square statistic. The common odds ratio is computed from weighted cross-products.

X^2_{MH} = rac{\left[\sum_h (a_h - E[a_h])
ight]^2}{\sum_h Var(a_h)}
OR_{MH} = rac{\sum_h a_h d_h / n_h}{\sum_h b_h c_h / n_h}

Step 1: List the 2 × 2 tables

Stratuma = M passb = M failc = F passd = F failn
191327118212
2921517226305
321169697
412221035

Step 2: Compute stratum expectations and variances

StratumE(a)Var(a)a − E(a)
193.99069.3503−2.9906
292.61648.1089−0.6164
320.41241.15080.5876
413.20000.4659−1.2000

Step 3: Combine the deviations

The sum of the deviations is −4.2193 and the sum of the variances is 19.0760. Substituting into the formula gives the verified Mantel Haenszel chi-square:

X^2_{MH} = rac{(-4.2193)^2}{19.0760} = 0.9332565

Step 4: Obtain the p-value

The Mantel Haenszel statistic is compared with a chi-square distribution with 1 degree of freedom. The verified p-value is 0.3340182, which is not statistically significant at α = .05.

Step 5: Compute the common odds ratio

Using the weighted cross-product formula, the common odds ratio is:

OR_{MH} = 0.7999116

The 95% confidence interval is 0.5101770 to 1.2541894. Because the interval includes 1, the adjusted common effect is not statistically distinguishable from no association.

Manual-calculation conclusion: the stratified adjusted association is weak and non-significant. The direction suggests somewhat lower male odds of passing after adjustment, but the evidence is too uncertain to claim a reliable difference.

Variables and Data Dictionary

VariableRoleCodingUse in the analysis
sexExposureM = male, F = femaleThe binary grouping variable whose adjusted association with pass is tested.
G3Original outcome sourceFinal grade from 0 to 19Used to derive pass/fail status.
G3 passBinary outcome1 = G3 ≥ 10, 0 = G3 < 10The event variable inside each 2 × 2 table.
studytimeStratifier1, 2, 3, 4Controls the association by creating the four strata.

Stratum-specific pass rates

StratumMale pass rateFemale pass rateStratum OR
10.73980.79780.7210
20.85980.86870.9271
30.95450.92001.8261
40.85711.00000.0000

The raw strata show some variation. In strata 1, 2 and 4 the male odds are lower, whereas stratum 3 shows a male odds ratio above 1. This is exactly why a common-effect procedure should be accompanied by a heterogeneity check such as the Breslow Day Test.

Worked Stratified 2 × 2 Tables and Complete Results

Studytime strata4

Separate 2 × 2 tables combined in one adjusted analysis

MH statistic0.9333

Common-effect chi-square with 1 degree of freedom

P-value0.3340

Fails to reject the null at α = .05

Common OR0.7999

Adjusted male-versus-female pass odds

95% CI0.5102–1.2542

Includes the null value of 1

Crude OR0.6486

Unstratified association before adjustment

MetricValueInterpretation
Mantel Haenszel statistic0.9332564901The combined adjusted chi-square evidence is small.
P-value0.3340181554No statistically significant adjusted association.
Common odds ratio0.7999116499Adjusted male pass odds are estimated to be about 0.80 of female pass odds.
95% CI lower0.5101770460Compatible with a moderate reduction in odds.
95% CI upper1.2541894087Also compatible with little or no difference and even a mild increase.

Crude versus adjusted story

The unstratified male-versus-female odds ratio from the collapsed table is 0.6486, whereas the adjusted Mantel Haenszel common odds ratio is 0.7999. The move toward 1 after adjustment suggests that study time explains part of the crude association. That is exactly the kind of confounding pattern for which a stratified adjusted analysis is useful.

Result summary: once study time is controlled, the data do not provide strong evidence that pass odds differ by sex.
AdvertisementGoogle AdSense placement reserved after the Results section

Mantel Haenszel Test Versus Crude Chi-Square and Logistic Regression

MethodWhat it usesKey outputInterpretive role
Crude 2 × 2 analysisOne collapsed tableCrude OR = 0.6486Shows the unadjusted association without controlling for study time.
Mantel Haenszel TestFour stratified 2 × 2 tablesMH χ² = 0.9333, OR = 0.7999Provides an adjusted common association across study-time strata.
Chi-square test of independenceOne contingency tableUnadjusted association testUseful for raw association but not sufficient when a stratifier matters.
Logistic regressionModel-based adjustmentAdjusted coefficients and interactionsMore flexible when multiple controls or interactions are needed.

The Mantel Haenszel Test sits between a simple chi-square analysis and a full regression model. It is more informative than a crude association because it controls one categorical confounder, but it is simpler and more transparent than a multivariable model.

Best comparison sentence: “The crude association suggested lower male pass odds, but after stratifying by study time, the adjusted common effect moved closer to the null and was not statistically significant.”

Mantel Haenszel Test Calculator: Step-by-Step Workflow

A correct Mantel Haenszel Test calculator should accept multiple 2 × 2 tables, compute the expected counts and variances within each stratum, return the MH statistic, and report the common odds ratio with a confidence interval.

Calculator inputs for the worked example

InputValueMeaning
Number of strata4Studytime levels 1 through 4.
Table orientationM pass, M fail, F pass, F failDetermines the direction of the odds ratio.
Stratum counts(91,32,71,18), (92,15,172,26), (21,1,69,6), (12,2,21,0)The four 2 × 2 tables.
Alpha level0.05Decision threshold.

Calculator steps

  • Enter each 2 × 2 table separately rather than collapsing them.
  • Keep the same cell orientation in every stratum.
  • Review the stratum-specific odds ratios before trusting the common odds ratio.
  • Read the common OR and its confidence interval together with the p-value.
  • If heterogeneity appears strong, interpret the pooled effect cautiously and consider a separate Breslow Day Test.
Expected calculator targets: MH χ² = 0.9333, p = 0.3340 and common OR = 0.7999 with 95% CI 0.5102 to 1.2542.

Six Python and R Mantel Haenszel Test Chart Interpretations

The Python and R workflows illustrate the same underlying Mantel Haenszel story: how each stratum behaves, how large the stratum tables are, whether the stratum-specific effects look homogeneous, and what the final common-effect result means.

Cross-software use: the Python and R reports reproduce the same four study-time strata, common odds-ratio estimate, confidence interval and non-significant Mantel Haenszel conclusion. Each paired chart below keeps the software-specific visual while using one shared interpretation framework.

Chart 1: Stratum odds ratios and common effectPython + R

Mantel Haenszel Test Python chart of stratum odds ratios
Python view of stratum-specific odds ratios and the common-effect idea.
Mantel Haenszel Test R chart of stratum odds ratios
R view of the same stratum-specific odds-ratio pattern.
Pattern

Most strata have odds ratios below 1, but one stratum is above 1 and one has a zero cell that forces the raw stratum OR to 0.

Key values

Stratum ORs are 0.7210, 0.9271, 1.8261 and 0.0000. The common OR is 0.7999.

Interpretation

The common-effect summary lies below 1, but the variation across strata reminds us to think about heterogeneity before overinterpreting the pooled result.

Why it matters

This chart is the fastest visual summary of whether a pooled odds ratio is directionally sensible.

Next step: compare the effect pattern with the stratum sample sizes and counts.

Chart 2: Stratum counts and pass totalsPython + R

Mantel Haenszel Test Python stratum counts chart
Python count view of the stratified sample structure.
Mantel Haenszel Test R pass counts chart
R chart emphasizing pass counts by stratum.
Pattern

Stratum 2 is the largest and therefore has the strongest influence on the pooled estimate.

Key values

Stratum totals are 212, 305, 97 and 35, with the fourth stratum contributing comparatively little information.

Interpretation

The common effect is not a simple average of the stratum ORs; larger, more informative strata receive more weight.

Why it matters

Understanding the stratum sizes helps explain why the common OR ends up near 0.80 rather than being dominated by the extreme small-stratum OR.

Next step: inspect failure counts and sparse cells because they influence odds-ratio stability.

Chart 3: Heterogeneity profile and fail countsPython + R

Mantel Haenszel Test Python heterogeneity profile chart
Python heterogeneity-oriented view of stratum agreement and variation.
Mantel Haenszel Test R fail counts chart
R chart showing the sparse fail counts that drive some stratum instability.
Pattern

The fourth stratum contains a zero female-fail cell, and the third stratum has very few male failures.

Key values

Male fails are 32, 15, 1 and 2; female fails are 18, 26, 6 and 0.

Interpretation

Sparse failure cells can create unstable or extreme raw stratum odds ratios, which is why a pooled adjusted estimate can be more informative than reading each OR in isolation.

Why it matters

This is also why the common-effect assumption should be checked and why continuity decisions matter in small strata.

Next step: connect the raw tables with absolute log-effect size and stratum-size context.

Chart 4: Absolute log effects and stratum sizesPython + R

Mantel Haenszel Test Python absolute log effects chart
Python chart emphasizing the magnitude of stratum departures on the log scale.
Mantel Haenszel Test R stratum sizes chart
R chart showing the contribution of each stratum's sample size.
Pattern

The most extreme apparent effect does not occur in the largest stratum.

Key values

Stratum 3 has an OR above 1.8 but only 97 observations, whereas stratum 2 has 305 observations and an OR close to 0.93.

Interpretation

Magnitude alone is not enough; the pooled result balances effect size and information content across strata.

Why it matters

This chart pair explains why the adjusted common OR is moderate and why the significance test is weak.

Next step: compare the signed log-OR pattern with the confidence interval for the common effect.

Chart 5: Log odds ratio by stratum and common-effect intervalPython + R

Mantel Haenszel Test Python log OR by stratum chart
Python view of stratum log-odds-ratio direction and magnitude.
Mantel Haenszel Test R common effect interval chart
R display of the common adjusted effect and its confidence interval.
Pattern

The common-effect interval crosses 1, confirming the non-significant adjusted result.

Key values

Common OR = 0.7999 with 95% CI 0.5102 to 1.2542.

Interpretation

The data are compatible with a meaningful reduction in male pass odds, but also compatible with little or no adjusted difference.

Why it matters

The interval communicates uncertainty better than the p-value alone.

Next step: finish with the summary panel that integrates the statistic, p-value and pooled effect.

Chart 6: Result summaryPython + R

Mantel Haenszel Test Python result summary chart
Python summary of the final Mantel Haenszel result.
Mantel Haenszel Test R result summary chart
R summary of the same common-effect result.
Pattern

The summary chart condenses the adjusted common-effect analysis into one compact result panel.

Key values

MH χ² = 0.9333, p = 0.3340, common OR = 0.7999 and 95% CI 0.5102 to 1.2542.

Interpretation

The adjusted evidence is not statistically significant, and the effect estimate remains uncertain.

Why it matters

This is the best visual for reports, teaching slides and quick communication of the final conclusion.

Next step: connect the chart results to the software workflows and reporting templates below.
AdvertisementGoogle AdSense placement reserved after the chart section

Mantel Haenszel Test in Python, R, SPSS and Excel

Python workflow

Python is convenient for building the stratum tables, computing the Mantel Haenszel statistic, extracting the common odds ratio and creating the diagnostic charts. For broader background, see categorical data analysis in Python.

  • Create one 2 × 2 table for each study-time stratum.
  • Keep the same cell ordering in every stratum.
  • Compute the MH statistic and common OR.
  • Check the confidence interval and heterogeneity context.
  • Generate stratum and summary charts.

R workflow

R provides reliable support for stratified 2 × 2 analyses and is well suited to effect-estimate plots and common-effect summaries. See categorical data analysis in R.

  • Represent the data as a three-dimensional table.
  • Call the Mantel Haenszel procedure for the stratified association.
  • Extract the common odds ratio and interval.
  • Display stratum-specific and pooled results visually.
  • Add a heterogeneity check when relevant.

SPSS workflow

SPSS can produce stratified crosstabs, odds ratios and Mantel Haenszel-type outputs for layered tables. It is also useful for exporting the study-time-specific tables and supporting diagnostics. See categorical data analysis in SPSS.

  • Define sex, pass/fail and studytime clearly.
  • Use layered crosstabs by studytime.
  • Request the Mantel Haenszel statistics and odds ratios.
  • Verify the direction of the exposure and outcome coding.
  • Export the output PDF and compare it with the verified workbook.

Excel workflow

The Excel workbook used here shows every stage of the computation explicitly: input data, observed tables, calculations, diagnostics and reporting. That makes it useful for teaching and manual verification.

  • Enter or import the original row-level data.
  • Create the four study-time-specific 2 × 2 tables.
  • Calculate E(a), Var(a), a−E(a), ad/n and bc/n.
  • Combine the strata into the MH statistic and common OR.
  • Reference the verified p-value and confidence interval in the reporting sheet.

Why not just use logistic regression?

Logistic regression is more flexible, but the Mantel Haenszel Test remains valuable when the goal is a transparent one-confounder adjustment with a clear common odds-ratio interpretation. It is often easier to teach, easier to verify by hand and often ideal as a first adjusted analysis before moving to a model-based workflow.

Expandable Code for the Mantel Haenszel Test

Python pseudo-code for the Mantel Haenszel Test
tables = [
    [[91, 32], [71, 18]],
    [[92, 15], [172, 26]],
    [[21, 1], [69, 6]],
    [[12, 2], [21, 0]]
]
# compute stratum-specific values
# combine them into the MH statistic
# compute the common odds ratio and confidence interval
R pseudo-code for the Mantel Haenszel Test
# create a 2 x 2 x 4 array
# run mantelhaen.test(x)
# extract the common odds ratio and confidence interval
# summarize the strata and create plots
Excel formula ideas
E(a) = ((a+b)*(a+c))/n
Var(a) = ((a+b)*(c+d)*(a+c)*(b+d)) / (n^2*(n-1))
MH_stat = (SUM(a_minus_E)^2) / SUM(var_a)
OR_MH = SUM(a*d/n) / SUM(b*c/n)

Assumptions, Limitations and Advanced Interpretation

Assumptions

  • Each stratum is a valid 2 × 2 table for the same exposure-outcome question.
  • Observations are independent within and across strata.
  • The strata are meaningful and correctly defined.
  • A common odds ratio is a reasonable summary.
  • The coding direction is consistent across all strata.

Limitations

  • The method adjusts for only a stratification structure, not multiple continuous covariates.
  • Strong effect heterogeneity weakens the meaning of the pooled odds ratio.
  • Sparse strata can produce unstable stratum-specific odds ratios.
  • The common odds ratio is not as flexible as a full model-based approach.
  • Collapsing a quantitative covariate into strata may lose information.

The biggest interpretive safeguard is to separate common-effect estimation from homogeneity checking. The Mantel Haenszel Test can estimate a common adjusted association, but it does not by itself prove that a single common odds ratio describes every stratum equally well. That is why a separate Breslow Day Test is usually recommended.

Common conceptual mistake: do not confuse the Mantel Haenszel common odds-ratio test with the broader Cochran Mantel Haenszel family for nominal or ordinal tables. The current analysis is specifically the common odds-ratio version for repeated 2 × 2 tables.

APA Reporting for the Mantel Haenszel Test

Reporting rule: state the stratifying variable, MH statistic, p-value, common odds ratio, confidence interval, table orientation and whether homogeneity was checked separately.

Completed worked-example report

Not significant

Method

A Mantel Haenszel common odds-ratio analysis examined the association between sex and final-pass status while adjusting for four study-time strata.

Result

The adjusted association was not statistically significant, χ2MH(1, N = 649) = 0.93, p = .334.

Effect

The common odds ratio was ORMH = 0.80, 95% CI [0.51, 1.25].

Meaning

After adjustment for study time, male pass odds were estimated to be lower than female pass odds, but the interval included 1 and the evidence was not statistically reliable.

Table direction: male versus female pass odds. Homogeneity should be evaluated separately before emphasizing one common effect.

Reusable APA template

Fill-in template

Method

A Mantel Haenszel analysis was conducted to examine the association between [exposure] and [binary outcome] while adjusting for [stratifying variable].

Test

The common adjusted association was [significant/not significant], χ2MH(1, N = [N]) = [statistic], p = [p].

Effect

The common odds ratio was ORMH = [estimate], 95% CI [[lower], [upper]].

Meaning

This indicates [plain-language adjusted interpretation].

Always identify the numerator group and event coding because reversing either changes the odds-ratio direction.

Common Mantel Haenszel Test Mistakes and How to Correct Them

Common mistakes

  • Collapsing the strata and reporting only a crude 2 × 2 result.
  • Using inconsistent table ordering across strata.
  • Interpreting the common odds ratio without checking heterogeneity context.
  • Reporting only the p-value without the common OR and interval.
  • Confusing the direction of the odds ratio.

How to fix them

  • Keep the 2 × 2 tables separate and combine them through the MH formula.
  • Use one consistent coding rule for every stratum.
  • Mention the need for a separate heterogeneity check.
  • Report both inference and effect estimation.
  • State clearly whether the OR is male versus female or the reverse.

Mantel Haenszel Test Reports and Worked Excel Download

Frequently Asked Questions About the Mantel Haenszel Test

What is the Mantel Haenszel Test used for?

It is used to combine several 2 × 2 tables into one adjusted association test and a common odds-ratio estimate while controlling for a stratifying variable.

What does the Mantel Haenszel common odds ratio mean?

It is the pooled adjusted odds-ratio estimate across strata. Values below 1 indicate lower adjusted odds in the numerator group, values above 1 indicate higher adjusted odds and 1 indicates no adjusted association.

What is the difference between a crude odds ratio and the Mantel Haenszel odds ratio?

The crude odds ratio ignores the stratifying variable, whereas the Mantel Haenszel common odds ratio adjusts for it by combining the separate stratum tables.

Why should I check heterogeneity?

If the strata-specific associations are very different, a single common odds ratio may not represent the data well. That is why analysts often pair the method with a Breslow Day Test.

How do I report the Mantel Haenszel Test?

Report the MH chi-square statistic, p-value, common odds ratio, confidence interval, sample size, number of strata and a brief interpretation of the adjusted effect.

What does the current worked example conclude?

After adjusting for study-time strata, the association between sex and final-pass status is not statistically significant: MH χ² = 0.93, p = .334 and OR_MH = 0.80 with a 95% CI that includes 1.

AdvertisementGoogle AdSense bottom placement reserved here

Mantel Haenszel Test Conclusion

Mantel Haenszel Test is one of the most useful stratified tools in categorical data analysis because it adjusts a binary exposure-outcome association for one categorical confounder without hiding the data structure. In this worked example, four study-time-specific 2 × 2 tables were combined into one adjusted analysis. The resulting common odds ratio was 0.7999, and the Mantel Haenszel statistic was 0.9333 with p = 0.3340, so the adjusted association was not statistically significant.

The larger lesson is methodological as well as numerical: analysts should move beyond a crude 2 × 2 table when a meaningful stratifier exists, but they should also check whether a common pooled effect is appropriate before making strong substantive claims. If you want to extend the same topic, continue with Breslow Day Test, Chi Square Calculator, Categorical Data Analysis in Python and Logistic Regression.

Back to top

Need help applying this to your own data?

Salar Cafe can help interpret output, clean datasets, review assumptions, build dashboards and explain statistical results ethically.

Need help interpreting your data analysis results?

Contact Salar Cafe
Engr. Muhammad Yar Saqib author profile photo

Engr. Muhammad Yar Saqib

WhatsApp Get Data Analysis Help