Get startedGet started for free

What does the pay difference look like now?

It appears that the job level mix is different for new hires. New hires are less likely to be hourly employees, and more likely to be salaried or managers. Do new hires have a higher average salary than current employees when job level is taken into account? Calculate the average salaries, and then recreate the bar chart from earlier in the chapter, adding faceting to split it up by the three job levels. Are the bar heights closer together than they were in the first plot?

This exercise is part of the course

HR Analytics: Exploring Employee Data in R

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Calculate the average salary for each group of interest in the pay dataset
pay_grouped <- ___


Edit and Run Code