RandomBlockDesignsWu - One-way Layout and Randomized Block...

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

View Full Document Right Arrow Icon
One-way Layout and Randomized Block Design One-way layout: The Pulp dataset comes from table 2.1 in Wu and Hamada (2009). > loc <- "http://www2.isye.gatech.edu/~jeffwu/book/data/pulp.dat" > pulp <- read.table(url(loc), header = TRUE) > y <- as.numeric(as.matrix(pulp)) > operator <- as.factor(c(rep("A", 5), rep("B",5), rep("C", 5),rep("D",5))) > boxplot(y ~ operator) A B C D 59.8 60.0 60.2 60.4 60.6 60.8 61.0 > m0 <- lm(y ~ operator) Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) 60.2400 0.1458 413.243 <2e-16 *** operatorB -0.1800 0.2062 -0.873 0.3955 operatorC 0.3800 0.2062 1.843 0.0839 . operatorD 0.4400 0.2062 2.134 0.0486 * --- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 Residual standard error: 0.326 on 16 degrees of freedom Multiple R-squared: 0.4408, Adjusted R-squared: 0.3359 F-statistic: 4.204 on 3 and 16 DF, p-value: 0.02261 > model.matrix(m0) (Intercept) operatorB operatorC operatorD 1 1 0 0 0 2 1 0 0 0 3 1 0 0 0 4 1 0 0 0
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.

This note was uploaded on 12/12/2010 for the course STAT 425 taught by Professor Ma,p during the Fall '08 term at University of Illinois, Urbana Champaign.

Page1 / 4

RandomBlockDesignsWu - One-way Layout and Randomized Block...

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