diff_diff.DeltaSD
- class diff_diff.DeltaSD[source]
Bases:
objectSmoothness restriction on trend violations (Delta^{SD}).
- Restricts the second differences of the trend violations:
When M=0, this enforces that violations follow a linear trend (linear extrapolation of pre-trends). Larger M allows more curvature in the violation path.
- Parameters:
M (float) – Maximum allowed second difference. M=0 means linear trends only.
Examples
>>> delta = DeltaSD(M=0.5) >>> delta.M 0.5
Methods
__init__([M])Attributes