RainbowStats™ · Regression commands
DIFFERENCE_IN_DIFFERENCES
Estimate the existing difference-in-differences event analysis.
Syntax
DIFFERENCE_IN_DIFFERENCES(treated,controls,date[,ARG(END_DATE,date)])
DID(treated,controls,date)Returned object
DifferenceInDifferencesOperator
Example
m=DID(treated,controls,20200301)
EXTRACT(m,"summary")Interpretation and limitations
Treated and control inputs must be data lists. The event date is numeric YYYYMMDD. The only optional argument accepted by this dispatcher is ARG(END_DATE,date). Inspect pretrends and the design before drawing causal conclusions.
Available extracts
Save the command result in a variable, then use EXTRACT(result, "key"). Availability can depend on the input form and fitted model.
slideshowsummaryevent_chartevent_time_chartregressionsregression_chartpre_scatterpost_scatterregression_coefficientsdiagnosticsevent_dataatthac_sehac_lagshac_cipretrend_slopejson
In indexed patterns such as beta:n, replace n with the required index.