Session Ready
Exercise

Checking for omitted variables

With the survey data joined, you can test your colleague's idea that employee engagement, or specifically, employee disengagment, changed at the same time that the accident rate changed. Use a bar chart to compare the distributions, just as you have in previous chapters, and then use a statistical test to check if the difference you can see is significant.

Instructions 1/3
undefined XP
  • 1
  • 2
  • 3
  • With the southfield dataset, use filled bar charts to compare the distribution of disengaged employees by year. Use fill = factor(disengaged).