Pallets | R Documentation |
The paletts data set contains data from a firm that recycles paletts. Paletts 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 pallets repaired.
A data frame with 20 observations on the following 3 variables.
number of pallets repaired
a factor with levels A
B
C
D
a factor with levels day1
day2
day3
day4
day5
Michael Stob, Calvin College
data(Pallets)
# Do the employees differ in the rate at which they repair pallets?
pal.lm1 <- lm(pallets ~ employee, data = Pallets)
anova(pal.lm1)
# Now using day as a blocking variable
pal.lm2 <- lm(pallets ~ employee + day, data = Pallets)
anova(pal.lm2)
gf_line(pallets ~ day, data = Pallets,
group = ~employee,
color = ~employee) %>%
gf_point() %>%
gf_labs(title = "Productivity by day and employee")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.