powered by
Data for Exercise 2.4, 2.37, and 2.49
Lifespan
A data frame/tibble with six observations two variables
temperature (in Celcius)
lifespan of component (in hours)
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
# NOT RUN { plot(life ~ heat, data = Lifespan) model <- lm(life ~ heat, data = Lifespan) abline(model, col = "red") resid(model) sum((resid(model))^2) anova(model) rm(model) # }
Run the code above in your browser using DataLab