gen_dq: Generate d_q

View source: R/gen_dq.R

gen_dqR Documentation

Generate d_q

Description

Generate d_q

Usage

gen_dq(dt, id, w, stgyr)

Arguments

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.

Value

A data.frame including d_q dummy variables.

Examples

data(stg6)
gen_dq(stg6, id, w, stgyr = 2013:2016)


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