# Factorial Design Analysis

Here is the regression model statement for a simple 2 x 2 Factorial Design. In this design, we have one factor for time in instruction (1 hour/week versus 4 hours/week) and one factor for setting (in-class or pull-out). The model uses a dummy variable (represented by a `Z`

) for each factor. In two-way factorial designs like this, we have two main effects and one interaction. In this model, the main effects are the statistics associated with the beta values that are adjacent to the `Z`

-variables. The interaction effect is the statistic associated with `b3`

(i.e., the `t`

-value for this coefficient) because it is adjacent in the formula to the multiplication of (i.e., interaction of) the dummy-coded `Z`

variables for the two factors. Because there are two dummy-coded variables, each having two values, you can write out 2 x 2 = 4 separate equations from this one general model. You might want to see if you can write out the equations for the four cells. Then, look at some of the differences between the groups. You can also write out two equations for each `Z`

variable. These equations represent the main effect equations. To see the difference between levels of a factor, subtract the equations from each other. If you’re confused about how to manipulate these equations, check the section on how dummy variables work.

$$y_i = \beta_0 + \beta_1Z_{1i}+\beta_2Z_{2i}+\beta_3Z_{1i}Z_{2i}+e_i$$

*where:*

`y`

is the outcome of the i_{i}^{th}unit`Î²`

is the coefficient for the_{0}*intercept*`Î²`

is the mean difference on factor 1_{1}`Î²`

is the mean difference on factor 2_{2}`Î²`

is the interaction of factor 1 and factor 2_{3}`Z`

is the dummy variable for factor 1 (_{1i}`0`

= 1 hour per week,`1`

= 4 hours per week)`Z`

is the dummy variable for factor 2 (_{2i}`0`

= in class,`1`

= pull-out)`e`

is the residual for the_{i}`i`

^{th}unit