A random-effects model for data from a completely nested design with n factors has the general form
![\[ y_{i_1 i_2 \cdots i_ n r} = \mu + \alpha _{i_1} + \beta _{i_1 i_2} + \cdots + \epsilon _{i_1 i_2 \cdots i_ n r} \]](images/statug_nested0011.png)
where

is the value of the dependent variable observed at the rth replication with factor j at level
, for
.

is the overall (fixed) mean of the sampled population.

are mutually uncorrelated random effects with zero means and respective variances
,
, …,
.