Mathpro | R Documentation |
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
SAT math scores for high school seniors
math proficiency scores for eigth graders
a numeric vector
National Assessment of Educational Progress and The College Board.
Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.