Omitted variable bias

Phân tích HR: Khám phá dữ liệu nhân sự bằng 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?

Phân tích HR: Khám phá dữ liệu nhân sự bằng 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
Phân tích HR: Khám phá dữ liệu nhân sự bằng 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
Phân tích HR: Khám phá dữ liệu nhân sự bằng R

Visualizing group composition

Phân tích HR: Khám phá dữ liệu nhân sự bằng R

Phân tích HR: Khám phá dữ liệu nhân sự bằng R

100% stacked bar charts

pay %>% 
  ggplot(aes(x = new_hire, fill = department)) +
  geom_bar(position = "fill")
Phân tích HR: Khám phá dữ liệu nhân sự bằng R

Let's practice!

Phân tích HR: Khám phá dữ liệu nhân sự bằng R

Preparing Video For Download...