knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of didWD is to make a DID regression with staggered treatment based on Wooldridge (2021).
You can install the development version of didWD from GitHub with:
# install.packages("devtools") devtools::install_github("common2016/didWD")
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')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.