The existence of effect modifiers or confounding factors requires measuring an effect in subgroups (strata) of the study population. We perform a stratified analysis. The effect modifier or confounding factor can have two or several categories. Each of them is a stratum in the stratified analysis. We measure the effect between exposure and outcome in each of the various levels taken by the effect modifier or the confounding factor.
The relevant table looks as follows

Cases

Total

Attack Rate

Risk Ratio

Stratum 1

a_{1}

Te_{1}

Re_{1}

RR_{1}

c_{1}

Tu_{1}

Ru_{1}


Stratum 2

a_{2}

Te_{2}

Re_{2}

RR_{2}

c_{2}

Tu_{2}

Ru_{2}


Stratum 3

a_{3}

Te_{3}

Re_{3}

RR_{3}

c_{3}

Tu_{3}

Ru_{3}


Stratum 4

a_{4}

Te_{4}

Re_{4}

RR_{4}

c_{4}

Tu_{4}

Ru_{4}


TOTAL

Sa

STe

Re

RR

Sc

STu

Ru


To conduct a stratified analysis we can identify six major steps which have a specific chronology:
1. Conduct a crude analysis
Measure the effect (RR or OR) of the exposure of interest on the outcome in our study. Compute the confidence limits of this effect.
Those variables are identified from the crude analysis of the data or identified a priori from literature review. They include the other identified risk factors (variables which are associated with outcome) and variables which can be subdivided in several sub groups of public health interest (age, gender, etc.). When the effect modifier or confounding factor is not binary (YesNo) we create as many strata as there are categories of exposure in that variable.
3. Measure the effect of exposure on outcome within each stratum
Measure the effect of the exposure on outcome within each of the strata (RR_{2} to RR_{4 }above).
If the effect differs between strata, we then suggest that effect modification is present. This should be supported by a test for homogeneity between strata and a reflection on the biological plausibility of the varying effect among strata. Since effect varies among strata we need to present the results by stratum. An overall effect (crude effect) is less informative since not illustrating the information given by the effect measured in each stratum.
Compare the crude measure of effect to a weighted measure (e.g. MantelHaenszel).
If the crude and weighted measures differ by more than 1520%, the crude measure of effect may have been confounded. The weighted measure of effect is therefore more appropriate than the crude measure of effect. The crude measure of effect can be compared to the range of value taken by the stratum specific effects: if it lies outside the range of stratumspecific values, then confounding is likely.
6. Are effect modification and confounding present?
If both effect modification and confounding are present, the interpretation of a measured effect is complicated (a variable can be both a confounding factor and an effect modifier). In that event a multivariable analysis taking into account confounding and interaction is needed [1].
References
1. Hosmer DW, Lemeshow S. ModelBuilding Strategies and Methods for Logistic Regression. 2nd ed. New Jersey, USA: John Wiley & Sons Inc; 2000.