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.
Cet exercice fait partie du cours
HR Analytics: Exploring Employee Data in R
Exercice interactif pratique
Essayez cet exercice en complétant cet exemple de code.
# Run a simple logistic regression
logistic_simple <- ___(___, family = ___, data = ___)