GRADES: GPA and SAT Scores

Description Usage Format References Examples

Description

The admissions committee of a comprehensive state university selected, at random, the records of 200 second semester freshmen. The results, first semester college GPA and high school SAT scores, are stored in the data frame GRADES.

Usage

1

Format

A data frame with 200 observations on the following 2 variables:

References

Ugarte, M. D., Militino, A. F., and Arnholt, A. T. 2015. Probability and Statistics with R, Second Edition. Chapman & Hall / CRC.

Examples

1
2
3
4
5
6
# base scatterplot
plot(gpa ~ sat, data = GRADES)
# lattice scatterplot
xyplot(gpa ~ sat, data = GRADES, type = c("p", "smooth"))
# ggplot scatterplot
ggplot(data = GRADES, aes(x = sat, y = gpa)) + geom_point() + geom_smooth()

Example output

Loading required package: lattice
Loading required package: ggplot2
`geom_smooth()` using method = 'loess' and formula 'y ~ x'

PASWR2 documentation built on Sept. 5, 2021, 5:44 p.m.