Aan de slagGa gratis aan de slag

New hire pay: accounting for job levels

The power of linear regression is that it can combine the steps you took earlier in the chapter of testing the difference between groups, then adding a filter, and testing again. By adding the additional variable directly into the regression, you get a significance result that does take the additional information into account.

In this exercise you'll use multiple regression to test the difference in pay between new hires and current employees, while accounting for the fact that the job level mix is not the same in the two groups.

Deze oefening maakt deel uit van de cursus

HR Analytics: Exploring Employee Data in R

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Run the multiple regression
model_multiple <- lm(___)
Code bewerken en uitvoeren