SATx | R Documentation |
SAT data assembled for a statistics education journal article on the
link between SAT scores and measures of educational expenditures. This is the
same as mosaicData::SAT
, but extended to have categorical versions of the
variables frac
, expend
, salary
, and ratio
, which makes it easier to
visualize how frac
changes the sign of the slope of SAT
vs frac
, etc.
data(SATx)
A data frame with 50 observations on the following variables.
state
a factor with names of each state
expend
expenditure per pupil in average daily attendance in
public elementary and secondary schools, 1994-95 (in thousands of US dollars)
expend_q
a translation of expend
into a three-level categorical variable
ratio
average pupil/teacher ratio in public elementary and secondary
schools, Fall 1994
ratio_q
Similar to expend_q
salary
estimated average annual salary of teachers in public elementary
and secondary schools, 1994-95 (in thousands of US dollars)
salary_q
Similar to expend_q
frac
percentage of all eligible students taking the SAT, 1994-95
frac_q
Similar to expend_q
verbal
average verbal SAT score, 1994-95
math
average math SAT score, 1994-95
sat
average total SAT score, 1994-95
http://www.amstat.org/publications/jse/secure/v7n2/datasets.guber.cfm
Deborah Lynn Guber, "Getting what you pay for: the debate over equity in public school expenditures" (1999), Journal of Statistics Education 7(2).
data(SAT) if (require(ggformula)) { gf_point(sat ~ expend, data = SAT, color = "blue", alpha = 0.5) %>% gf_lm() gf_text(sat ~ expend, data = SAT, label = ~ abbreviate(SAT$state, 3), inherit = FALSE) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.