Problem 1.
(a) The columns of response and factors can be defined in R asfollows, use these codes to solve the problem.
y<-c(2, 3, 10, 12, 8, 4, 11, 8)##response : scores
a<-c(\"Heart\",\"Heart\", \"Soul\", \"Soul\",\"Heart\",\"Heart\", \"Soul\",\"Soul\")##factor A
b<-c(\"D\", \"D\", \"D\", \"D\", \"R\", \"R\", \"R\", \"R\")##factor B (groupvariable)
(b) Find the overall mean, row means, column means, each cellmean for the table given in problem 1.