DID
Difference-in-differences estimate of a treatment effect with robust or clustered standard errors.
Syntax
Section titled “Syntax”DID dep BY treated post [WITH covariates] [/CLUSTER=unit] [/CRITERIA=CI(.95)].Synopsis
Section titled “Synopsis”| Kind | Procedure (reads data, produces output) |
| Body | main /SUBCOMMAND[=] … |
| Changes data | no |
| Subcommands | /CLUSTER, /CRITERIA, /MISSING |
| Menu | Analyze ▸ Extended |
| Slot: Outcome | 1–1 variable(s); levels: scale; types: numeric |
| Slot: Treated group (0/1) | 1–1 variable(s); levels: nominal, ordinal, scale; types: numeric |
| Slot: Post period (0/1) | 1–1 variable(s); levels: nominal, ordinal, scale; types: numeric |
Examples
Section titled “Examples”DID sales BY treated after /CLUSTER=store.- treated and post are coded 0/1; the effect is the treated × post coefficient.
Related
Section titled “Related”PANEL REGRESSION, DISCONTINUITY
Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.