← All posts

Epitab in Stata: Classical Epidemiologic Analysis with 2×2 (confusion matrix) and Stratified Tables

Clinical Epidemiology ResearchUniqcret doctor knowledgesMethodology and Research DesignData Analytics or StatisticsStata [Data Analytics]
On this page

Overview

Epitab is a suite of Stata commands designed for classical epidemiologic analyses based on 2×2 and stratified tables. It provides design-consistent estimation of effect measures, confidence intervals, and attributable fractions across cohort, case–control, cross-sectional, and matched study designs.

Unlike regression models (e.g., logistic, poisson, stcox), Epitab commands are table-based, transparent, and ideal for:

The Epitab family includes commands for rates, risks, odds, trend tests, Mantel–Haenszel adjustment, and matched data.


Command Families by Study Design

1. Incidence-Rate Data (Person-Time)

ir — Incidence-Rate Ratio and Difference

Used when outcomes are expressed as events per person-time.

Key outputs

Stratified options

Immediate form

When to prefer

Related models


2. Cohort and Cross-Sectional Risk Data

cs — Risk Difference, Risk Ratio (± Odds Ratio)

Used when follow-up time is equal for all subjects or when analyzing cumulative incidence.

Key outputs

Enhancements

Immediate form

When to prefer

Regression analogues


3. Case–Control and Cross-Sectional Odds

cc — Odds Ratio from 2×2 Tables

Used when sampling is conditioned on outcome.

Key outputs

Homogeneity testing

Immediate form

Design principle

Regression analogue


4. Odds Across Multiple Exposure Categories

tabodds — Odds, Odds Ratios, and Trend Tests

Used when exposure is categorical or ordinal.

Capabilities

Visualization

Use cases


5. Adjusted Odds Ratios (Stratified Control)

mhodds — Mantel–Haenszel Odds Ratios

Estimates adjusted odds ratios controlling for categorical confounders.

Features

Interpretation

Best for


6. Matched Case–Control Studies

mcc — McNemar-Based Analysis

Used for pair-matched or set-matched designs.

Key outputs

Immediate form

Design note

Regression analogue


Why Use Epitab in Modern Clinical Research?

Strengths

Limitations

Best practice:Use Epitab first, then confirm with regression models.


Teaching & Workflow Recommendations

Epitab provides the epidemiologic intuition that regression often obscures.


Conclusion

Epitab remains one of Stata’s most valuable—but underused—toolkits for classical epidemiologic analysis. For CECS PhD students and clinical researchers, it bridges the gap between design-based reasoning and model-based inference, ensuring that effect estimates remain interpretable, reproducible, and scientifically grounded.

0
Message for International and Thai ReadersUnderstanding My Medical Context in ThailandRead more →Message for International and Thai ReadersUnderstanding My Broader Content Beyond MedicineRead more →

Comments

No comments yet. Be the first to share your thoughts.

Sign in to comment