{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

STAT 4220 HW3

# STAT 4220 HW3 - Austin Wen STAT 4220 HW3 1(a Df factor(x 3...

This preview shows pages 1–3. Sign up to view the full content.

Austin Wen STAT 4220 HW3 1. (a) Df Sum Sq Mean Sq F value Pr(>F) factor(x) 3 191.5 63.833 9.1737 0.001976 ** Residuals 12 83.5 6.958 --- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0. (b) Df Sum Sq Mean Sq F value Pr(>F) x 1 0.8 0.800 0.0408 0.8427 Residuals 14 274.2 19.586 The results of part (a) and part (b)’s ANOVAs are totally different. Part (a) has “factor(x)” as its regression, and part (b) has x instead. In R, we treat factor(x) has 4 different levels: > factor(x) [1] 1 1 1 1 2 2 2 2 3 3 3 3 4 4 4 4 Levels: 1 2 3 4 But a straight line of data for “x”: > x [1] 1 1 1 1 2 2 2 2 3 3 3 3 4 4 4 4 (c)

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
-2 0 2 4 Plot of residual vs factor levels Diets Residuals A B C D -2 -1 0 1 2 Normal probability plot of residuals Theoretical Quantiles A vs. C A vs. D B vs. C B vs. D C vs. D
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 5

STAT 4220 HW3 - Austin Wen STAT 4220 HW3 1(a Df factor(x 3...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online