doubleml-for-py
doubleml-for-py copied to clipboard
Add Class for Repeated Cross-Sectional Data
Adds a analog to DoubleMLDIDMulti for repeated cross-sectional data.
The changes include:
- [x]
make_did_cs_CS2021data generator - [x]
DoubleMLDIDCSBinaryclass - [x] Update
DoubleMLDIDMulticlass to support repeated cross-sections - [x] Updated
plot_effects()method to color anticipation periods - [x] Added
gt_combinations="universal"option toDoubleMLDIDMulti
Further, generalize the __str__ method in the DoubleML class to allow for flexible output, e.g. see DoubleMLBinary.
Reference to Issues or PRs
See #317 Universal option #339
Comments
PR Checklist
Please fill out this PR checklist (see our contributing guidelines for details).
- [x] The title of the pull request summarizes the changes made.
- [x] The PR contains a detailed description of all changes and additions.
- [x] References to related issues or PRs are added.
- [x] The code passes all (unit) tests.
- [x] Enhancements or new feature are equipped with unit tests.
- [x] The changes adhere to the PEP8 standards.
@PhilippBach
Maybe you can check specifically the argument naming.
Further, I have updated plot_effects() to highlight anticipation periods.