ex2rev - R Material for Second Exam Review >...

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

View Full Document Right Arrow Icon
R Material for Second Exam Review > data.chemical <- read.table(file=" http://www.stat.ufl.edu/~rrandles/sta4211/Rclassnotes/data/chemical.txt ",co l.names=c("strength","batch","barrel","rep")) > attach(data.chemical) > data.chemical strength batch barrel rep 1 2.3 1 1 1 2 2.1 1 1 2 3 2.0 1 1 3 4 2.5 1 2 1 5 2.3 1 2 2 6 2.5 1 2 3 7 2.6 1 3 1 8 2.4 1 3 2 9 2.7 1 3 3 10 2.4 1 4 1 11 2.6 1 4 2 12 2.3 1 4 3 13 2.8 2 1 1 14 2.9 2 1 2 15 2.6 2 1 3 16 2.7 2 2 1 17 2.5 2 2 2 18 2.8 2 2 3 19 2.6 2 3 1 20 2.6 2 3 2 21 2.8 2 3 3 22 2.4 2 4 1 23 2.8 2 4 2 24 2.6 2 4 3 25 3.0 3 1 1 26 3.1 3 1 2 27 2.9 3 1 3 28 3.4 3 2 1 29 3.3 3 2 2 30 3.0 3 2 3 31 2.9 3 3 1 32 3.0 3 3 2 33 3.2 3 3 3 34 3.1 3 4 1 35 2.8 3 4 2 36 3.2 3 4 3 37 2.5 4 1 1 38 2.8 4 1 2 39 2.6 4 1 3 40 2.8 4 2 1 41 3.0 4 2 2 42 2.7 4 2 3 43 3.1 4 3 1 44 2.8 4 3 2 45 2.9 4 3 3 46 2.7 4 4 1 47 2.9 4 4 2 48 2.6 4 4 3 49 3.6 5 1 1 50 3.7 5 1 2 51 3.4 5 1 3 52 3.8 5 2 1 53 3.8 5 2 2
Background image of page 1

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

View Full DocumentRight Arrow Icon
54 3.5 5 2 3 55 3.7 5 3 1 56 3.5 5 3 2 57 3.5 5 3 3 58 3.9 5 4 1 59 3.5 5 4 2 60 3.7 5 4 3 > fbatch <- factor(batch) > fbarrel <- factor(barrel) > model1 <- aov(strength~fbatch + fbarrel + fbatch:fbarrel)
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

ex2rev - R Material for Second Exam Review &gt;...

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

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