Bivariate Data Analysis: Two-Way ANOVA

Factorial Design Fundamentals
  • Factor: Categorical independent variable (IV) used for grouping participants.

  • Level: Specific categories contained within a factor.

  • Design Types:

    • 1-Way: 11 IV.

    • 2-Way: 22 IVs (e.g., 2×22 \times 2 or 2×32 \times 3).

    • Factorial: Multiple categorical IVs (e.g., 2×3×22 \times 3 \times 2).

  • Comparisons:

    • Within-Group (Paired/Repeated): Multiple data points per person in 11 group.

    • Between-Group (Independent): 11 data point per person across 2+2+ distinct groups.

ANOVA Taxonomy & Components
  • ANOVA Variants:

    • 1-Way Independent: 11 between-groups IV.

    • 2-Way Independent: 22 between-groups IVs.

    • 2-Way Repeated: 22 within-groups IVs.

    • 2-Way Mixed: 11 between-groups IV and 11 within-groups IV.

  • Effects:

    • Main Effect: Direct effect of 11 IV on DV (evaluated for IV1\text{IV}_1 and IV2\text{IV}_2).

    • Interaction Effect (IV1×IV2\text{IV}_1 \times \text{IV}_2): Effect of 11 IV changes across levels of another IV.

    • Post-Hoc Tests: Follow-up tests to locate specific group mean differences.

  • Interpretation Rule: If interaction is significant, interpret main effects cautiously.

Mathematical Framework for Two-Way ANOVA
  • Sum of Squares (SSSS) Formulas:

    • Total: SST=SSM+SSRSS_T = SS_M + SS_R

    • Model: SSM=SSA+SSB+SSA×BSS_M = SS_A + SS_B + SS_{A \times B}

    • Residual: SSR=∑k=1k∑i=1nk(xik−xˉk)2SS_R = \sum_{k=1}^{k} \sum_{i=1}^{n_k} (x_{ik} - \bar{x}_k)^2

  • Degrees of Freedom (dfdf) Calculations:

    • dfA=Levels of IV1−1df_A = \text{Levels of IV}_1 - 1

    • dfB=Levels of IV2−1df_B = \text{Levels of IV}_2 - 1

    • dfA×B=dfA×dfBdf_{A \times B} = df_A \times df_B

    • dfR=Total Groups×(Persons per Cell−1)df_R = \text{Total Groups} \times (\text{Persons per Cell} - 1)

  • Calculated Example Values:

    • SSSS Values: SSM=44.1252SS_M = 44.1252, SSR=2.58SS_R = 2.58, SSA=22.445SS_A = 22.445, SSB=20.44SS_B = 20.44, SSA×B=1.24SS_{A \times B} = 1.24

    • dfdf Values: dfA=1df_A = 1, dfB=2df_B = 2, dfA×B=2df_{A \times B} = 2, dfR=12df_R = 12

    • Mean Squares (MS=SSdfMS = \frac{SS}{df}): MSA=22.445MS_A = 22.445, MSB=10.22MS_B = 10.22, MSAB=0.62MS_{AB} = 0.62, MSR=0.215MS_R = 0.215

    • F-Ratios (F=MSEffectMSRF = \frac{MS_{\text{Effect}}}{MS_R}):

    • Factor A: FA=22.4450.215=104.4F_A = \frac{22.445}{0.215} = 104.4 →\rightarrow F(1,12)=104.4F(1, 12) = 104.4

    • Factor B: FB=10.220.215=47.53F_B = \frac{10.22}{0.215} = 47.53 →\rightarrow F(2,12)=47.53F(2, 12) = 47.53

    • Interaction: FAB=0.620.215=2.88F_{AB} = \frac{0.62}{0.215} = 2.88 →\rightarrow F(2,12)=2.88F(2, 12) = 2.88

JASP Empirical Analysis and Reporting
  • Scenario (PSYC311_Data_4):

    • DV: Satisfaction

    • IV1\text{IV}_1: Tipping Method (Cash vs. Credit)

    • IV2\text{IV}_2: Time of Day (Morning vs. Evening)

  • Main Effects:

    • Tipping Method: Significant, F(1,357)=88.553F(1, 357) = 88.553, p<.001p < .001

    • Time of Day: Not significant, F(1,357)=0.556F(1, 357) = 0.556, p=.457p = .457

  • Interaction Effect:

    • Significant, F(1,357)=710.817F(1, 357) = 710.817, p<.001p < .001

  • Post-Hoc Summary (Tukey HSD):

    • Morning: Credit > Cash (p<.001p < .001)

    • Evening: Cash > Credit (p<.001p < .001)

    • Cash: Evening > Morning (p<.001p < .001)

    • Credit: Morning > Evening (p<.001p < .001)

    • Cross-Group: Evening Cash > Morning Credit (p<.001p < .001); Morning Cash > Evening Credit (p<.001p < .001)