A contractor wishes to see whether there is a difference in
A contractor wishes to see whether there is a difference in the time (in days) it takes two subcontractors to build three types of homes. At alpha equal to 0.05, analyze the data shown here, using a two way ANOVA. Use excel.
| Home Type | Home Type | Home Type | |
| Subcontracter | 1 | 2 | 3 |
| A | 25, 28, 26, 30, 31 | 30, 32, 35, 29, 31 | 43, 40, 42, 49, 48 |
| B | 15, 18, 22, 21, 17 | 21, 27, 18, 15, 19 | 23, 25, 24, 17, 13 |
Solution
facB=as.factor(rep(rep(c(\'A\',\'B\'),each=3),5))
facA=as.factor(rep((rep(1:3,2)),5))
x=c(25,30,43,15,21,23,28,32,40,18,27,25,26,35,42,22,18,24,
30,29,49,21,15,17,31,31,48,17,19,13)
fit=aov(x~facA+facB+facA*facB)
summary(fit)
This is the required R code
From this we will get the anova table as follows
Df Sum Sq Mean Sq F value Pr(>F)
facA 2 444.9 222.4 16.24 3.47e-05 ***
facB 1 1672.5 1672.5 122.08 6.77e-11 ***
facA:facB 2 313.3 156.6 11.43 0.000325 ***
Residuals 24 328.8 13.7
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
