powered by
Data for Exercise 9.55
Press
A data frame/tibble with 20 observations on two variables
years of education
degree of confidence in the press (the higher the score, the more confidence)
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
# NOT RUN { plot(confidence ~ education_yrs, data = Press) model <- lm(confidence ~ education_yrs, data = Press) abline(model, col = "purple") summary(model) rm(model) # }
Run the code above in your browser using DataLab