Omitted variable bias

Analitik SDM: Mengeksplorasi Data Karyawan di R

Ben Teusch

HR Analytics Consultant

When group compositions differ

Two groups of people

  • A: eats little to no meat
  • B: eats normal amount of meat
    • Group A gains weight

Conclusion: weight gain plans should exclude meat?

Analitik SDM: Mengeksplorasi Data Karyawan di R

When group compositions differ

Two groups of people

  • A: eats little to no meat
  • B: eats normal amount of meat
    • Group A gains weight
  • Omitted piece of data:
    • group A is made up of infants
    • group B is made up of adults
Analitik SDM: Mengeksplorasi Data Karyawan di R

Omitted variable bias

Omitted variable bias occurs when an omitted variable is correlated with:

  • the dependent variable, and
  • the way the groups are divided
Analitik SDM: Mengeksplorasi Data Karyawan di R

Visualizing group composition

Analitik SDM: Mengeksplorasi Data Karyawan di R

Analitik SDM: Mengeksplorasi Data Karyawan di R

100% stacked bar charts

pay %>% 
  ggplot(aes(x = new_hire, fill = department)) +
  geom_bar(position = "fill")
Analitik SDM: Mengeksplorasi Data Karyawan di R

Let's practice!

Analitik SDM: Mengeksplorasi Data Karyawan di R

Preparing Video For Download...