openintro (version 2.0.0)

elmhurst: Elmhurst College gift aid

Description

A random sample of 50 students gift aid for students at Elmhurst College.

Usage

elmhurst

Arguments

Format

A data frame with 50 observations on the following 3 variables.

family_income

Family income of the student.

gift_aid

Gift aid, in $1000s.

price_paid

Price paid by the student (tuition - gift aid).

Examples

Run this code
# NOT RUN {
library(ggplot2)
library(broom)

ggplot(elmhurst, aes(x = family_income, y = gift_aid)) +
  geom_point() +
  geom_smooth(method = "lm")

mod <- lm(gift_aid ~ family_income, data = elmhurst)
tidy(mod)

# }

Run the code above in your browser using DataLab