Learn R Programming

openintro (version 2.4.0)

sex_discrimination: Bank manager recommendations based on sex

Description

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

Usage

sex_discrimination

Arguments

Format

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

sex

a factor with levels female and male

decision

a factor with levels not promoted and promoted

Examples

Run this code

library(ggplot2)

table(sex_discrimination)

ggplot(sex_discrimination, aes(y = sex, fill = decision)) +
  geom_bar(position = "fill")

Run the code above in your browser using DataLab