Stata Command: ecic.ado
The ecic command estimates quantile treatment effects (QTE) at extreme quantiles via changes in changes (CIC) based on Sasaki and Wang (Forthcoming). The designed setting requires that all the units are untreated in the first period (T=0), all the units in the control group (G=0) remain untreated in the second period (T=1), and all the units in the treatment group (G=1) receive treatments in the second period (T=1). The command assumes repeated cross sections.
To accommodate covariates, one can run preliminary regression of the outcome Y on covariates X. Replace Y by the residuals in the ecic command. This residualized procedure is theoretically supported by Sasaki and Wang (Forthcoming; Sec. 6).
Installation:
. ssc install ecic
Usage:
. gen Y_resid = 0
. foreach g of numlist 0/1 {
. foreach t of numlist 0/1 {
. regress Y X if G==`g' & T==`t'
. predict temp_Y_resid if G==`g' & T==`t', residuals
. replace Y_resid = temp_Y_resid if G==`g' & T==`t'
. drop temp_Y_resid
. }
. }
. predict resid_Y, residuals
. ecic resid_Y G T, q(0.98)
Help:
. help ecic
Reference: Sasaki, Y & Y. Wang (Forthcoming) Extreme Changes in Changes. Journal of Business & Economic Statistics . Paper.