Rforch20 - R Material for Chapter 20 > data.solder

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

View Full Document Right Arrow Icon
> data.solder <- read.table(file="http://www.stat.ufl.edu/~rrandles/sta4211/Rclassnotes/data/solder.txt",col. names=c("const","antimony","cooling","strength")) > attach(data.solder) > data.solder const antimony cooling strength 1 1 0 WQ 17.6 2 1 0 OQ 20.0 3 1 0 AB 18.3 4 1 0 FC 19.4 5 1 3 WQ 18.6 6 1 3 OQ 20.0 7 1 3 AB 21.7 8 1 3 FC 19.0 9 1 5 WQ 22.3 10 1 5 OQ 20.9 11 1 5 AB 22.9 12 1 5 FC 19.6 13 1 10 WQ 15.2 14 1 10 OQ 16.4 15 1 10 AB 15.8 16 1 10 FC 16.4 > fant <- factor(antimony) > fcool <- factor(cooling) > model1 <- aov(strength~fant +fcool) ## Main Effects Model > summary(model1) Df Sum Sq Mean Sq F value Pr(>F) fant 3 63.577 21.1923 15.203 0.0007206 *** fcool 3 4.207 1.4023 1.006 0.4339134 Residuals 9 12.546 1.3940 --- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 Tukey's Test for Additivity: > a <- 4 ## Number of levels of factor A > b <- 4 ## Number of levels of factor B > mst <- mean(strength) > mst [1] 19.00625
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

Rforch20 - R Material for Chapter 20 &gt; data.solder

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