Performance ratings: a simple logistic regression
Since high_performer is a binary variable, you'll need to use logistic regression to test whether men are statistically more likely to be labeled high performers in this dataset, even when job level is taken into account.
Do a warm-up by running a simple logistic regression without adding in job level.
แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
HR Analytics: Exploring Employee Data in R
แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ
ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์
# Run a simple logistic regression
logistic_simple <- ___(___, family = ___, data = ___)