5.
a. Analyze the Bread variable in the SandwichAnts dataset usingaov() in R and
interpret your results.
The data may be found here:
install.packages("Lock5Data")
library(Lock5Data)
data(SandwichAnts,package="Lock5Data")
attach(SandwichAnts)
b. State the linear model for this problem. Define all notation andmodel terms.
c. Create the design matrix for this problem.
d. Estimate model parameters for this problem using ? =(?T?)-1?T?
e. Interpret the meaning of the estimates from part d.
f. Rerun this problem using lm()in R. Interpret the coefficients inthe output.
g. Rewrite the model in as a linear regression using dummyvariables. Confirm the
results from part f. agree with the results from part g.
h. Perform a one-way ANOVA of Bread using a randomization test onthe
SandwichAnts dataset.