powered by
Data for Exercise 9.24, Example 9.1, and Example 9.6
Mathpro
A data frame/tibble with 51 observations on four variables
a factor with levels Conn, D.C., Del, Ga, Hawaii, Ind, Maine, Mass, Md, N.C., N.H., N.J., N.Y., Ore, Pa, R.I., S.C., Va, and Vt
Conn
D.C.
Del
Ga
Hawaii
Ind
Maine
Mass
Md
N.C.
N.H.
N.J.
N.Y.
Ore
Pa
R.I.
S.C.
Va
Vt
SAT math scores for high school seniors
math proficiency scores for eigth graders
a numeric vector
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
# NOT RUN { model <- lm(sat_math ~ profic, data = Mathpro) plot(sat_math ~ profic, data = Mathpro, ylab = "SAT", xlab = "proficiency") abline(model, col = "red") summary(model) rm(model) # }
Run the code above in your browser using DataLab