Example 6.1 used sum(wtlossdat [B] *wtlossdat[y])/4 to compute the main effect of $mathrm{C}$.a. Explain why the espression
Question:
Example 6.1 used
sum(wtlossdat ["B"] *wtlossdat["y"])/4
to compute the main effect of $\mathrm{C}$.a. Explain why the espression is divided by 4 ?
b. Write an $\mathrm{R}$ function to calculate the main effects using the design matrix.
c. Write an $\mathrm{R}$ function to calculate the interaction effects using the design matrix.
Data from Example 6.1
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Design And Analysis Of Experiments And Observational Studies Using R
ISBN: 9780367456856
1st Edition
Authors: Nathan Taback
Question Posted: