Suppose you have an outcome variable y and two dummy variables, treated and after. (So some observations of y are treated after a certain date and others are never treated--the control group.) You could do
Code: Select all
ls y c treated after treated*after
The last coefficient is the DiD estimate.