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.
This exercise is part of the course
HR Analytics: Exploring Employee Data in R
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Run a simple logistic regression
logistic_simple <- ___(___, family = ___, data = ___)