knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

didWD

The goal of didWD is to make a DID regression with staggered treatment based on Wooldridge (2021).

Installation

You can install the development version of didWD from GitHub with:

# install.packages("devtools")
devtools::install_github("common2016/didWD")

Example

This is a basic example which shows you how to solve a common problem:

library(didWD)
library(plm)
## basic example code
fit <- didWD(stg6, id = 'id', year = 'year', y = 'logy', w = 'w')
lmtest::coeftest(fit$fit, vcov. = vcovHC, method = 'white2')


common2016/didWD documentation built on April 24, 2022, 12:12 a.m.