A dataset from a mid-western US trucking company on annual earnings of its employees in 2007. Datasets like this are used in audits by the Federal Government to look for signs of discrimination.
data(Trucking_jobs)
A data frame Trucking_jobs
with 129 rows and 11 variables.
sex
The employee's sex: M or F
earnings
Annual earnings, in dollars. Hourly wages have been converted to a full-time basis.
age
The employee's age, in years.
title
The employee's job title.
hiredyears
How long the employee has been working for the company.
mod_1 = lm(earnings ~ age + hiredyears + sex, data = Trucking_jobs)