Suppose a model has two factors, A and B and the interaction between the 2 factors, A*B. A is a random factor and B is a fixed factor.
where
The equation for the conditional fitted value for follows:
where and represent the corresponding calculated coefficients for the fixed effect terms. Also, and are the calculated BLUP values for the random terms.
The calculated mean of AB at level i of factor A and level j of factor B is .
where is the calculated coefficient vector, is the calculated BLUP vector, and and are known vectors determined by the mean for a specific term. Then the mean formula has the same form as the conditional fit. Therefore, the formulas for standard error, the degrees of freedom, the confidence interval, the t-value, and the p-value for the mean are simlilarly derived as the corresponding formulas for the conditional fits. For more information on these formulas for the conditional fits, go to Methods and formulas for conditional fits and residuals in Fit Mixed Effects Model. By replacing the vector and the vector with the vector and the vector respectively in the conditional fit formulas, you get the corresponding formulas for the mean.