Hoe kan ik een ANOVA type III test doen?
Ik kom er niet uit dit is wat ik wel krijg:
Boek Andy Field R output:
Anova Table (Type III tests)
Response: attractiveness
Sum Sq Df F value Pr(>F)
(Intercept) 163333 1 1967.025 < 2.2e-16 ***
alcohol 169 1 2.0323 0.1614 ***
gender 3332 2 20.0654 7.649e-07 ***
alcohol:gender 1978 2 11.9113 7.987e-05 ***
Residuals 3487 42
---
Signif. codes:
0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Mijn output:
> Anova(datModel, type="IH");
Error in match.arg(type) : 'arg' should be one of “II”, “III”, “2”, “3”
> Anova(datModel, type="III");
Anova Table (Type III tests)
Response: attractiveness
Sum Sq Df F value Pr(>F)
(Intercept) 163333 1 1967.025 < 2.2e-16 ***
alcohol 2082 2 12.539 5.373e-05 ***
gender 1200 1 14.452 0.0004587 ***
alcohol:gender 2197 2 13.229 3.503e-05 ***
Residuals 3487 42
---
Signif. codes:
0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
> Anova((datModel, type="IH");
Error: unexpected ',' in "Anova((datModel,"
> Anova(datModel, type="IH");
Error in match.arg(type) : 'arg' should be one of “II”, “III”, “2”, “3”
> Anova(datModel, type="III");
Anova Table (Type III tests)
Response: attractiveness
Sum Sq Df F value Pr(>F)
(Intercept) 163333 1 1967.025 < 2.2e-16 ***
alcohol 2082 2 12.539 5.373e-05 ***
gender 1200 1 14.452 0.0004587 ***
alcohol:gender 2197 2 13.229 3.503e-05 ***
Residuals 3487 42
---
Signif. codes:
0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
> Anova((datModel, type="IH");
Error: unexpected ',' in "Anova((datModel,"
> Anova(datModel, type="I");
Error in match.arg(type) : 'arg' should be one of “II”, “III”, “2”, “3”
> Anova(datModel, type="one");
Error in match.arg(type) : 'arg' should be one of “II”, “III”, “2”, “3”
> Anova(datModel, type="II");
Anova Table (Type II tests)
Response: attractiveness
Sum Sq Df F value Pr(>F)
alcohol 2082.3 2 12.539 5.373e-05 ***
gender 1200.0 1 14.452 0.0004587 ***
alcohol:gender 2196.9 2 13.229 3.503e-05 ***
Residuals 3487.5 42
---
Signif. codes:
0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
> Anova(datModel);
Anova Table (Type II tests)
Response: attractiveness
Sum Sq Df F value Pr(>F)
alcohol 2082.3 2 12.539 5.373e-05 ***
gender 1200.0 1 14.452 0.0004587 ***
alcohol:gender 2196.9 2 13.229 3.503e-05 ***
Residuals 3487.5 42
---
Signif. codes:
0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1