Skip to main content
Back

Two-Way Analysis of Variance (ANOVA) with Equal Cell Sizes: Concepts, Applications, and Mixed Models

Study Guide - Smart Notes

Tailored notes based on your materials, expanded with key definitions, examples, and context.

{"type":"doc","content":[{"type":"heading","attrs":{"textAlign":null,"level":2},"content":[{"type":"text","text":"Two-Way ANOVA: Introduction and Motivation"}]},{"type":"heading","attrs":{"textAlign":null,"level":3},"content":[{"type":"text","text":"Overview"}]},{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Two-way ANOVA is a statistical method used to analyze how a continuous outcome depends on two categorical factors simultaneously. It is an extension of one-way ANOVA and is commonly applied in clinical trials, public health research, and experimental designs."}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","marks":[{"type":"bold"}],"text":"Efficiency:"},{"type":"text","text":" Estimates both factors and their interaction from a single dataset."}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","marks":[{"type":"bold"}],"text":"Interaction Detection:"},{"type":"text","text":" Tests whether the effect of one factor depends on the level of the other."}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","marks":[{"type":"bold"}],"text":"Precision:"},{"type":"text","text":" Partitioning systematic variation improves statistical power."}]}]}]},{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","marks":[{"type":"italic"}],"text":"Balanced designs"},{"type":"text","text":" (equal cell sizes) simplify calculations and ensure orthogonal sums of squares and independent hypothesis tests."}]},{"type":"heading","attrs":{"textAlign":null,"level":2},"content":[{"type":"text","text":"Notation and Design Structure"}]},{"type":"heading","attrs":{"textAlign":null,"level":3},"content":[{"type":"text","text":"Factorial Design Notation"}]},{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Let factor A have "},{"type":"text","marks":[{"type":"italic"}],"text":"r"},{"type":"text","text":" levels (rows) and factor B have "},{"type":"text","marks":[{"type":"italic"}],"text":"c"},{"type":"text","text":" levels (columns). Each combination forms a cell with "},{"type":"text","marks":[{"type":"italic"}],"text":"n"},{"type":"text","text":" observations. Total sample size: "},{"type":"inlineMath","attrs":{"latex":"N = r \\times c \\times n"}},{"type":"text","text":"."}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"Y_{ijk}"}},{"type":"text","text":": k-th response in cell (i, j)"}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"\\mu_{ij}"}},{"type":"text","text":": Population mean for cell (i, j)"}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"\\mu_{i.}"}},{"type":"text","text":": Marginal mean for row i"}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"\\mu_{.j}"}},{"type":"text","text":": Marginal mean for column j"}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"\\mu_{..}"}},{"type":"text","text":": Grand mean"}]}]}]},{"type":"table","content":[{"type":"tableRow","content":[{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null}}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"B = 1"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"B = 2"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Row Mean"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"A = 1"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"\\mu_{11}"}}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"\\mu_{12}"}}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"\\mu_{1.}"}}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"A = 2"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"\\mu_{21}"}}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"\\mu_{22}"}}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"\\mu_{2.}"}}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Col Mean"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"\\mu_{.1}"}}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"\\mu_{.2}"}}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"\\mu_{..}"}}]}]}]}]},{"type":"heading","attrs":{"textAlign":null,"level":2},"content":[{"type":"text","text":"The Two-Way ANOVA Model"}]},{"type":"heading","attrs":{"textAlign":null,"level":3},"content":[{"type":"text","text":"Fixed Effects Model"}]},{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"The classical two-way fixed effects ANOVA model is:"}]},{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"Y_{ijk} = \\mu_{..} + \\alpha_i + \\beta_j + \\gamma_{ij} + E_{ijk}"}}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"\\mu_{..}"}},{"type":"text","text":": Grand mean"}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"\\alpha_i = \\mu_{i.} - \\mu_{..}"}},{"type":"text","text":": Row main effect (factor A)"}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"\\beta_j = \\mu_{.j} - \\mu_{..}"}},{"type":"text","text":": Column main effect (factor B)"}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"\\gamma_{ij}"}},{"type":"text","text":": Interaction effect"}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"E_{ijk} \\sim \\mathcal{N}(0, \\sigma^2)"}},{"type":"text","text":": Random error"}]}]}]},{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Sum-to-zero constraints ensure identifiability:"}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"\\sum_i \\alpha_i = 0"}}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"\\sum_j \\beta_j = 0"}}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"\\sum_i \\gamma_{ij} = 0"}},{"type":"text","text":" for all j"}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"\\sum_j \\gamma_{ij} = 0"}},{"type":"text","text":" for all i"}]}]}]},{"type":"heading","attrs":{"textAlign":null,"level":3},"content":[{"type":"text","text":"Decomposition of Variation"}]},{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"The total deviation from the grand mean partitions as:"}]},{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"(Y_{ijk} - \\bar{Y}_{..}) = (Y_{ijk} - \\bar{Y}_{ij.}) + (\\bar{Y}_{i..} - \\bar{Y}_{..}) + (\\bar{Y}_{.j.} - \\bar{Y}_{..}) + [(\\bar{Y}_{ij.} - \\bar{Y}_{i..}) - (\\bar{Y}_{.j.} - \\bar{Y}_{..})]"}}]},{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Sum of squares decomposition (balanced design):"}]},{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"SS_Y = SSE + SSR + SSC + SSRC"}}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"SSR = c n \\sum_i (\\bar{Y}_{i..} - \\bar{Y}_{..})^2"}}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"SSC = r n \\sum_j (\\bar{Y}_{.j.} - \\bar{Y}_{..})^2"}}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"SSRC = n \\sum_i \\sum_j (\\bar{Y}_{ij.} - \\bar{Y}_{i..} - \\bar{Y}_{.j.} + \\bar{Y}_{..})^2"}}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"SSE = \\sum_{ijk} (Y_{ijk} - \\bar{Y}_{ij.})^2"}}]}]}]},{"type":"heading","attrs":{"textAlign":null,"level":3},"content":[{"type":"text","text":"The ANOVA Table"}]},{"type":"table","content":[{"type":"tableRow","content":[{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Source"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"df"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":[47]},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"SS"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":[66]},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"MS"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"F (Fixed)"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":[104]},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"F (Mixed/Random)"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Row (A)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"r-1"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":[47]},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"SSR"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":[66]},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"MSR = SSR/(r-1)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"MSR/MSE"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":[104]},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"MSR/MSRC"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Column (B)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"c-1"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":[47]},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"SSC"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":[66]},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"MSC = SSC/(c-1)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"MSC/MSE"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":[104]},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"MSC/MSRC"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"A×B (Interaction)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"(r-1)(c-1)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":[47]},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"SSRC"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":[66]},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"MSRC = SSRC/[(r-1)(c-1)]"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"MSRC/MSE"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":[104]},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"MSRC/MSE"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Error (Within)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"rc(n-1)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":[47]},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"SSE"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":[66]},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"MSE = SSE/[rc(n-1)]"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null}}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":[104]},"content":[{"type":"paragraph","attrs":{"textAlign":null}}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Total"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"rcn-1"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":[47]},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"SSY"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":[66]},"content":[{"type":"paragraph","attrs":{"textAlign":null}}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null}}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":[104]},"content":[{"type":"paragraph","attrs":{"textAlign":null}}]}]}]},{"type":"heading","attrs":{"textAlign":null,"level":3},"content":[{"type":"text","text":"Three Null Hypotheses"}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","marks":[{"type":"bold"}],"text":"Row main effect ("},{"type":"inlineMath","attrs":{"latex":"H_R"}},{"type":"text","marks":[{"type":"bold"}],"text":"):"},{"type":"text","text":" "},{"type":"inlineMath","attrs":{"latex":"\\alpha_i = 0"}},{"type":"text","text":" for all i (tested with "},{"type":"inlineMath","attrs":{"latex":"F = MSR/MSE"}},{"type":"text","text":")"}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","marks":[{"type":"bold"}],"text":"Column main effect ("},{"type":"inlineMath","attrs":{"latex":"H_C"}},{"type":"text","marks":[{"type":"bold"}],"text":"):"},{"type":"text","text":" "},{"type":"inlineMath","attrs":{"latex":"\\beta_j = 0"}},{"type":"text","text":" for all j (tested with "},{"type":"inlineMath","attrs":{"latex":"F = MSC/MSE"}},{"type":"text","text":")"}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","marks":[{"type":"bold"}],"text":"Interaction ("},{"type":"inlineMath","attrs":{"latex":"H_{RC}"}},{"type":"text","marks":[{"type":"bold"}],"text":"):"},{"type":"text","text":" "},{"type":"inlineMath","attrs":{"latex":"\\gamma_{ij} = 0"}},{"type":"text","text":" for all i, j (tested with "},{"type":"inlineMath","attrs":{"latex":"F = MSRC/MSE"}},{"type":"text","text":")"}]}]}]},{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","marks":[{"type":"bold"}],"text":"Important:"},{"type":"text","text":" Always examine the interaction first. Significant interaction means main effects may be misleading."}]},{"type":"heading","attrs":{"textAlign":null,"level":3},"content":[{"type":"text","text":"Expressing Interaction"}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","marks":[{"type":"bold"}],"text":"Difference of differences:"},{"type":"text","text":" "},{"type":"inlineMath","attrs":{"latex":"\\mu_{ij} - \\mu_{i.} \\neq \\mu_{.j} - \\mu_{..}"}},{"type":"text","text":" for some (i, j)"}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","marks":[{"type":"bold"}],"text":"ANOVA model:"},{"type":"text","text":" "},{"type":"inlineMath","attrs":{"latex":"\\gamma_{ij} \\neq 0"}},{"type":"text","text":" for some (i, j)"}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","marks":[{"type":"bold"}],"text":"Regression model:"},{"type":"text","text":" At least one interaction coefficient "},{"type":"inlineMath","attrs":{"latex":"\\gamma_{ij} \\neq 0"}}]}]}]},{"type":"heading","attrs":{"textAlign":null,"level":2},"content":[{"type":"text","text":"Visualizing Effects: Interaction Plots"}]},{"type":"heading","attrs":{"textAlign":null,"level":3},"content":[{"type":"text","text":"Interaction Plot Patterns"}]},{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Interaction plots display cell means with one factor on the x-axis and lines for each level of the other factor."}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","marks":[{"type":"bold"}],"text":"Parallel lines:"},{"type":"text","text":" No interaction"}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","marks":[{"type":"bold"}],"text":"Non-parallel lines:"},{"type":"text","text":" Interaction present"}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","marks":[{"type":"bold"}],"text":"Crossing lines:"},{"type":"text","text":" Disordinal (qualitative) interaction"}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","marks":[{"type":"bold"}],"text":"Non-crossing, non-parallel:"},{"type":"text","text":" Ordinal interaction"}]}]}]},{"type":"heading","attrs":{"textAlign":null,"level":2},"content":[{"type":"text","text":"Primary Example: Drug × Dose Factorial RCT"}]},{"type":"heading","attrs":{"textAlign":null,"level":3},"content":[{"type":"text","text":"Study Description"}]},{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"A 2×2 factorial RCT compares two antihypertensive drugs (Drug A, Drug B) at two dose levels (Low, High). Outcome: Reduction in diastolic BP (mmHg)."}]},{"type":"table","content":[{"type":"tableRow","content":[{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null}}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Low Dose"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"High Dose"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Row Mean"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Drug A"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"\\mu_{11}"}}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"\\mu_{12}"}}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"\\mu_{1.}"}}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Drug B"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"\\mu_{21}"}}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"\\mu_{22}"}}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"\\mu_{2.}"}}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Col Mean"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"\\mu_{.1}"}}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"\\mu_{.2}"}}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"inlineMath","attrs":{"latex":"\\mu_{..}"}}]}]}]}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","marks":[{"type":"bold"}],"text":"Factor A:"},{"type":"text","text":" Drug type (fixed)"}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","marks":[{"type":"bold"}],"text":"Factor B:"},{"type":"text","text":" Dose level (fixed)"}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","marks":[{"type":"bold"}],"text":"Primary questions:"},{"type":"text","text":" Main effects of drug and dose, and their interaction"}]}]}]},{"type":"heading","attrs":{"textAlign":null,"level":3},"content":[{"type":"text","text":"Descriptive Statistics"}]},{"type":"table","content":[{"type":"tableRow","content":[{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Dose Level"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Low Dose"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"High Dose"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Marginal (Drug)"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Drug A"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"9.0 (4.5)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"16.2 (5.7)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"12.6 (6.3)"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Drug B"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"11.7 (4.3)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"11.9 (5.7)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"11.8 (5.0)"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Marginal"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"10.4 (4.6)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"14.1 (6.0)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"12.2 (5.6)"}]}]}]}]},{"type":"heading","attrs":{"textAlign":null,"level":3},"content":[{"type":"text","text":"Interaction Plot"}]},{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Drug A shows a strong dose-response (+8 mmHg), Drug B shows a weak dose-response (+2 mmHg). Non-parallel lines indicate a drug-by-dose interaction."}]},{"type":"heading","attrs":{"textAlign":null,"level":3},"content":[{"type":"text","text":"ANOVA Table"}]},{"type":"table","content":[{"type":"tableRow","content":[{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Source"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"df"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"SS"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"MS"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"F"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"p-value"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"η²"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Drug (A)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"1"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"13.53"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"13.53"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"0.52"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"0.474"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"0.005"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Dose (B)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"1"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"269.77"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"269.77"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"10.31"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"0.002"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"0.107"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Drug × Dose (A×B)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"1"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"250.17"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"250.17"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"9.56"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"0.003"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"0.099"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Error (Within)"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"76"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"1,987.91"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"26.16"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null}}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null}}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"0.788"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Total"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"79"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"2,521.38"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null}}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null}}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null}}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null}}]}]}]},{"type":"heading","attrs":{"textAlign":null,"level":3},"content":[{"type":"text","text":"Regression Connection"}]},{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Two-way ANOVA can be fitted as a linear regression model. For balanced designs, F-statistics and p-values are identical."}]},{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Regression coefficients (treatment coding):"}]},{"type":"table","content":[{"type":"tableRow","content":[{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Term"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Beta"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"95% CI"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"p-value"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"Drug B"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"2.71"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"-0.51, 5.94"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"0.10"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"High Dose"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"7.21"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"3.99, 10.43"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null},"content":[{"type":"paragraph","attrs":{"textAlign":null},"content":[{"type":"text","text":"

Pearson Logo

Study Prep