"beta matrix:"
M - overall mean;
A - effect of factor A;
B - effect of factor B;
C - effect of factor C;
D - effect of factor D;
Interaction effects: AB, AC, AD, BC, BD, CD, ABC, ACD, BCD, and ABCD2⁴ Factorial Design
1 Equation:
\[ \begin{aligned} Y_{ijk\ell m} =\;& \mu+\alpha_i+\beta_j+\gamma_k+\delta_\ell \\ &+(\alpha\beta)_{ij}+(\alpha\gamma)_{ik}+(\alpha\delta)_{i\ell}+(\beta\gamma)_{jk}+(\beta\delta)_{j\ell}+(\gamma\delta)_{k\ell} \\ &+(\alpha\beta\gamma)_{ijk}+(\alpha\beta\delta)_{ij\ell}+(\alpha\gamma\delta)_{ik\ell}+(\beta\gamma\delta)_{jk\ell} \\ &+(\alpha\beta\gamma\delta)_{ijk\ell}+\varepsilon_{ijk\ell m} \end{aligned} \]
\[ \begin{aligned} M(x_1,x_2,x_3,x_4)=\;& \beta_0 \\ &+ \beta_1 x_1 + \beta_2 x_2 + \beta_3 x_3 + \beta_4 x_4 \\ &+ \beta_{12} x_1x_2 + \beta_{13} x_1x_3 + \beta_{14} x_1x_4 \\ &+ \beta_{23} x_2x_3 + \beta_{24} x_2x_4 + \beta_{34} x_3x_4 \\ &+ \beta_{123} x_1x_2x_3 + \beta_{124} x_1x_2x_4 + \beta_{134} x_1x_3x_4 + \beta_{234} x_2x_3x_4 \\ &+ \beta_{1234} x_1x_2x_3x_4 + \varepsilon \end{aligned} \]
\[ X^T*y=\beta \]
Where
X\(^{T}\) = transpose of the design-coefficient matrix;
y = outcome matrix of the design;
\(\beta\) = resulting coefficient matrix
2 Files:
3 Usage and example
# Input:
1. Enter the matrix containing the dataset;
2. Run the program "24Fat1matrix".
# Output:
1. Values of M, A, B, C, D, AB, AC, AD, BC, BD, CD, ABC, ACD, BCD, and ABCD.
Note: The exF24 file included in 24fat1matrix.zip refers only to the example design matrix. For user-provided data, a new design matrix must be created and stored in the variable c24 (Neto et al., 1996; p. 87).
4 References:
- Neto, B. B., Scarmino, I. S., & Bruns, R. E. Planejamento e otimização de experimentos. 2nd ed. Ed. Unicamp, 1996.