📊 09 - Panel Data and Fixed Effects

Table of Contents

Today’s session

  • Create three-way tables with janitor::tabyl()
  • Visualize trends across time with ggplot2
  • Learn how to extract our pooled, unit-fixed, and unit- and time-fixed effects estimates with Least Squares Dummy Variables (LSDV) estimation (with lm() and the de-meaning approach with plm())

Download slides - PDF


Further references

For R and RMarkdown
      Reminder of the basics: https://tinyurl.com/vkebh2f
      RMarkdown: The definitive guide https://tinyurl.com/y4tyfqmg
      Data wrangling with dplyr: https://tinyurl.com/vyrv596
      dplyr video tutorial: https://www.youtube.com/watch?v=jWjqLW-u3hc

For learning more about DAGs and ggdag:

      An Introduction to DAGs: https://ggdag.netlify.com/articles/intro-to-dags.html
      Introduction to ggdag: https://ggdag.netlify.com/articles/intro-to-ggdag.html
      Bias structures: https://ggdag.netlify.com/articles/bias-structures.html

Helpful cheatsheets

      Data visualization with ggplot: https://rstudio.com/wp-content/uploads/2015/03/ggplot2-cheatsheet.pdf
      Data wrangling with dplyr and tidyr: https://tinyurl.com/s6zxfqh
      RMarkdown cheatsheet: https://tinyurl.com/uqoelrx


Meet your instructors

Lisa Oswald & Sebastian Ramirez Ruiz