Skip to content

Instantly share code, notes, and snippets.

View srosh2000's full-sized avatar

Roshini Sudhaharan srosh2000

View GitHub Profile
@srosh2000
srosh2000 / staggered_DiD_example.R
Created September 1, 2023 08:46
Staggered DiD example
# Load packages
library(data.table)
library(dplyr)
library(tidyr)
library(zoo)
library(did)
library(lubridate)
library(googledrive)
library(ggplot2)
@srosh2000
srosh2000 / canonical_DiD_example.R
Last active June 12, 2023 11:11
2 x 2 difference-in-difference estimation example
# Load packages
library(googledrive)
library(data.table)
library(fixest)
library(broom)
library(ggplot2)
library(dplyr)
library(zoo)
# download data from google drive