BaşlayınÜcretsiz Başlayın

Calculate turnover risk probability

To design an employee retention strategy, you need the turnover probability for each employee. This is also known as the employee turnover risk score. Once you know the individual risk score of each employee, you can customize and prioritize the retention strategies for employees at different risk scores.

In this exercise, you will calculate the turnover risk scores only for Active employees using the final_log model.

Bu egzersiz

HR Analytics: Predicting Employee Churn in R

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Load the tidypredict package.
  • Subset the emp_final dataset to contain only Active employees and calculate probability turnover for these employees using tidypredict_to_column().
  • Run the given code to print the probability of turnover for top 2 rows.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Load tidypredict 
library(___)

# Calculate probability of turnover
emp_risk <- emp_final %>%
  filter(status == "___") %>%
  ___(final_log)

# Run the code
emp_risk %>% 
  select(emp_id, fit) %>% 
  slice_max(n = 2, fit)
Kodu Düzenle ve Çalıştır