Performance ratings: accounting for job levels
Now that you're warmed up on logistic regression, you can use it to statistically test what you saw in an earlier graph - are women less likely to be labeled a high performer, even when taking differences in job level into account? You can test this by adding job_level
into the glm()
formula and looking at the new p-value. The process is the same as adding a new variable to a linear regression.
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 multiple logistic regression
logistic_multiple <- ___