Learn R Programming

fastR (version 0.10.3)

palettes: Palette repair data

Description

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.

Arguments

Format

A data frame with 20 observations on the following 3 variables.

  • palettes number of palettes repaired

  • employee a factor with levels A B C D

  • day a factor with levels day1 day2 day3 day4 day5

Examples

Run this code
# NOT RUN {
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))

# }

Run the code above in your browser using DataLab