gen_dq | R Documentation |
Generate d_q
gen_dq(dt, id, w, stgyr)
dt |
A data.frame. |
id |
A index of indivuals. |
w |
A dummy variable which equals D_i\cdot T_i where D_i=1 indicates treated group, and T-i=1 indicates in the treated periods. |
stgyr |
A numerica vector about staggered years. |
A data.frame including d_q dummy variables.
data(stg6) gen_dq(stg6, id, w, stgyr = 2013:2016)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.