Problems 1, 2, 3
GroupA= c(3, 0, 5, 2, 1, 7, 3)
GroupB= c(4, 9, 0, 1, 6, 3, 5)
GroupC= c(2, 5, 7, 7, 5, 10, 9)
mean(GroupA)
## [1] 3
mean(GroupB)
## [1] 4
mean(GroupC)
## [1] 6.428571
Problem 6
scoredata= c(3, 0, 5, 2, 1, 7, 3, 4, 9, 0, 1, 6, 3, 5, 2, 5, 7, 7, 5, 10, 9)
var(scoredata)*20
## [1] 177.2381
Problem 4
mean(scoredata)
## [1] 4.47619
SSTreatment= 7*(3 - 4.476)^2 + 7*(4- 4.476)^2 + 7*(6.43- 4.476)^2
SSTreatment
## [1] 43.56288
Problem 5
177.24 - 43.52
## [1] 133.72
Problem 7
43.52 / 2
## [1] 21.76
Problem 8
133.71 / 18
## [1] 7.428333
Problem 9
21.76 / 7.43
## [1] 2.928668
Problem 12
pf(2.93, 2, 18, lower.tail=F)
## [1] 0.07914411