openintro (version 2.4.0)

gender_discrimination: Bank manager recommendations based on gender

Description

Study from the 1970s about whether gender influences hiring recommendations.

Usage

gender_discrimination

Arguments

Format

A data frame with 48 observations on the following 2 variables.

gender

a factor with levels female and male

decision

a factor with levels not promoted and promoted

Examples

Run this code

library(ggplot2)

table(gender_discrimination)

ggplot(gender_discrimination, aes(y = gender, fill = decision)) +
  geom_bar(position = "fill")

Run the code above in your browser using DataLab