Comparing distributions of high performers
You just performed a statistical test of the difference in high_performer
distribution between men and women in this dataset. You can also visualize the difference with 100% stacked bar charts, as you did with job_level
in the last chapter.
In this exercise, you'll use the same method you did before to visually compare the difference in the distribution of ratings given to men and women. You'll start by comparing the mix of high performers, and finish by comparing the distribution of all ratings.
This exercise is part of the course
HR Analytics: Exploring Employee Data in R
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Visualize the distribution of high_performer by gender
___