Adsales | R Documentation |
Data used in Exercise 9.15
Adsales
A data frame/tibble with six observations on three variables
a character vector listing month
a numeric vector containing number of ads
a numeric vector containing number of sales
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
plot(sales ~ ads, data = Adsales, main = "Exercise 9.15")
mod <- lm(sales ~ ads, data = Adsales)
abline(mod, col = "red")
summary(mod)
predict(mod, newdata = data.frame(ads = 6), interval = "conf", level = 0.99)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.