You are on page 1of 3

LANGKAH NO.

2 :

2.1 Import data sbb:


1. Group nilai
2. 1 P 109
3. 2 P 114
4. 3 P 108
5. 4 P 123
6. 5 P 115
7. 6 P 108
8. 7 P 114
9. 8 N 113
10. 9 N 114
11. 10 N 113
12. 11 N 108
13. 12 N 119
14. 13 N 112
15. 14 N 110
16. 15 LB 103
17. 16 LB 94
18. 17 LB 114
19. 18 LB 107
20. 19 LB 107
21. 20 LB 113
22. 21 LB 107
2.2 > stripchart(nilai ~ as.factor(grup), vertical = T, pch = 19, data =
RUMPUTLAUT1, xlab = "grup type", ylab = "nilai in tonnes / ha", method =
"jitter" = 0.04)
(akan muncul Rplot)
2.3 > analysis<- lm(nilai~as.factor(grup), data = RUMPUTLAUT1)
> anova(analysis)
Analysis of Variance Table

Response: nilai
Df Sum Sq Mean Sq F value Pr(>F)
as.factor(grup) 2 193.14 96.571 3.4008 0.05587 .
Residuals 18 511.14 28.397
---
Signif. codes: 0 *** 0.001 ** 0.01 * 0.05 . 0.1 1
2.4 > plot(analysis, which = 1) (akan muncul Rplot01)
2.5 > plot(analysis, which = 2) (akan muncul Rplot02)
2.5 > sresids<- rstandard(analysis)
2.6 > hist(sresids) (akan muncul Rplot04)
2.7 > TukeyHSD(aov(analysis))
Tukey multiple comparisons of means
95% family-wise confidence level

Fit: aov(formula = analysis)

$`as.factor(grup)`
diff lwr upr p adj
N-LB 6.2857143 -0.9838655 13.555294 0.0970627
P-LB 6.5714286 -0.6981512 13.841008 0.0804419
P-N 0.2857143 -6.9838655 7.555294 0.9944700

You might also like