Learn R Programming

statisticalModeling (version 0.3.0)

Trucking_jobs: Earnings of workers at a trucking company.

Description

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.

Usage

data(Trucking_jobs)

Arguments

Format

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.

Examples

Run this code
mod_1 = lm(earnings ~ age + hiredyears + sex, data = Trucking_jobs)

Run the code above in your browser using DataLab