MulaiMulai sekarang secara gratis

New hire pay: a simple regression

Linear regression is another tool that can be used to test differences between groups. Start by using a simple linear regression to test the original idea that that new hires earn more than current employees, without taking any other factors into account. Use the pay dataset again for the following exercises.

Latihan ini adalah bagian dari kursus

HR Analytics: Exploring Employee Data in R

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Run the simple regression
model_simple <- lm(___, data = ___)
Edit dan Jalankan Kode