satgpa | R Documentation |
SAT and GPA data for 1000 students at an unnamed college.
satgpa
A data frame with 1000 observations on the following 6 variables.
Gender of the student.
Verbal SAT percentile.
Math SAT percentile.
Total of verbal and math SAT percentiles.
High school grade point average.
First year (college) grade point average.
Educational Testing Service originally collected the data.
https://chance.dartmouth.edu/course/Syllabi/Princeton96/ETSValidation.html
library(ggplot2)
library(broom)
# Verbal scores
ggplot(satgpa, aes(x = sat_v, fy_gpa)) +
geom_point() +
geom_smooth(method = "lm") +
labs(
x = "Verbal SAT percentile",
y = "First year (college) grade point average"
)
mod <- lm(fy_gpa ~ sat_v, data = satgpa)
tidy(mod)
# Math scores
ggplot(satgpa, aes(x = sat_m, fy_gpa)) +
geom_point() +
geom_smooth(method = "lm") +
labs(
x = "Math SAT percentile",
y = "First year (college) grade point average"
)
mod <- lm(fy_gpa ~ sat_m, data = satgpa)
tidy(mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.