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

image text in transcribedimage text in transcribed

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: