The palettes data set contains data from a firm that recycles palettes. Palettes from warehouses are bought, repaired, and resold. (Repairing a palette typically involves replacing one or two boards.) The company has four employees who do the repairs. The employer sampled five days for each employee and recorded the number of palettes repaired.
A data frame with 20 observations on the following 3 variables.
palettes number of palettes repaired
employee a factor with levels
day a factor with levels
Michael Stob, Calvin College
1 2 3 4 5 6 7 8 9 10 11
data(palettes) # Do the employees differ in the rate at which they repair palettes? pal.lm1 <- lm(palettes~employee,palettes) anova(pal.lm1) # Now using day as a blocking variable pal.lm2 <- lm(palettes~employee+day,palettes) anova(pal.lm2) xyplot(palettes~day, data=palettes, groups=employee, main="Productivity by day and employee", type='b',auto.key=list(columns=4,points=FALSE,lines=TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.