Cigarett | R Documentation |
Data for Exercise 2.27
Cigarett
A data frame/tibble with 16 observations on two variables
mothers' estimated average number of cigarettes smoked per day
children's birth weights (in pounds)
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
plot(weight ~ cigarettes, data = Cigarett)
model <- lm(weight ~ cigarettes, data = Cigarett)
abline(model, col = "red")
with(data = Cigarett,
cor(weight, cigarettes)
)
rm(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.