1. 学习
  2. /
  3. 项目
  4. /
  5. HR Analytics: Exploring Employee Data in R

Connected

练习

Where is the highest accident rate?

It's time to answer the executive's first question: did the accident rate increase from 2016 to 2017? Now that you have the had_accident variable, you can calculate the accident rate by taking the mean of had_accident. Use the appropriate statistical test to see if the accident rate increase is significant. Then, determine which site has the highest accident rate.

说明 1 / 共 3 个

undefined XP
    1
    2
    3
  • Use group_by() and summarize() to find the mean accident_rate for each year.