Rforch23 - R Material for Chapter 23 > data.treess

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
> data.treess <- read.table(file=" http://www.stat.ufl.edu/~rrandles/sta4211/Rclassnotes/data/orangetreess.txt ",col.names=c("growth","ph","calcium")) > attach(data.treess) > data.treess growth ph calcium 1 5.2 4 100 2 5.9 4 100 3 6.3 4 100 4 5.8 4 100 5 7.4 4 200 6 6.3 4 300 7 6.7 4 300 8 7.1 5 100 9 7.4 5 100 10 7.4 5 200 11 7.3 5 200 12 7.1 5 200 13 7.8 5 200 14 7.3 5 300 15 7.5 5 300 16 7.2 5 300 17 7.6 6 100 18 7.2 6 100 19 7.4 6 100 20 7.6 6 200 21 7.2 6 300 22 7.3 6 300 23 7.0 6 300 24 7.4 6 300 25 7.8 6 300 > fph <- factor(ph) > fcal <- factor(calcium) > model1 <- aov(growth~fph +fcal +fph:fcal) > summary(model1) Df Sum Sq Mean Sq F value Pr(>F) fph 2 6.5370 3.2685 35.2478 1.371e-06 *** fcal 2 0.9427 0.4714 5.0832 0.01954 * fph:fcal 4 1.3990 0.3498 3.7718 0.02404 * Residuals 16 1.4837 0.0927 --- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 > coefficients(model1) (Intercept) fph5 fph6 fcal200 fcal300 fph5:fcal200 5.8000000
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

Rforch23 - R Material for Chapter 23 &gt; data.treess

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online