▚DATAJIN

Two-way ANOVA calculator

Two-way ANOVA tests the effect of two categorical factors on a numeric outcome at the same time, and whether the factors interact. For example: does crop yield depend on fertiliser, on irrigation, and does the effect of fertiliser change with irrigation? DATAJIN takes data in long format: one value column and two grouping columns.

No sign-up, nothing to install. Calculations run in your browser; the worksheets, results and charts you create are stored by AI Walay to improve DATAJIN.

When to use it

  • Factorial experiments with two treatments (for example drug × dose, diet × sex).
  • You suspect the effect of one factor depends on the level of another.

Assumptions

  • Observations are independent.
  • Residuals are roughly normal with similar variance across cells.
  • Every combination of factor levels needs observations and the model needs residual degrees of freedom. DATAJIN uses Type II sums of squares for unequal group sizes.

How to run it in DATAJIN

  1. Use long format: one column for the numeric value and one column for each factor (text labels are fine).
  2. Open Analyze and choose Two-way ANOVA.
  3. Assign the value column and the two factor columns, then click Run.

Example: open the Restaurant tips dataset (tip as the value, day and smoker as the two factors) and follow the steps above.

What you get

  • ANOVA table for factor A, factor B, the A × B interaction and the residual: SS, df, MS, F and p

How to interpret the result

Check the interaction row first. If it is significant, the effect of one factor depends on the other, so interpret the main effects with care and plot the cell means. If it is not significant, the main-effect rows tell you whether each factor matters on its own.

Frequently asked questions

What does a significant interaction mean?

That the effect of one factor is different at different levels of the other: the lines on an interaction plot are not parallel. Report and interpret simple effects rather than only the main effects.

What data layout does DATAJIN need for two-way ANOVA?

Long format: every row is one observation with its numeric value and its level of each factor, for example columns "yield", "fertiliser", "irrigation".