doubleml-for-py icon indicating copy to clipboard operation
doubleml-for-py copied to clipboard

Add Class for Repeated Cross-Sectional Data

Open SvenKlaassen opened this issue 5 months ago • 1 comments

Adds a analog to DoubleMLDIDMulti for repeated cross-sectional data.

The changes include:

  • [x] make_did_cs_CS2021 data generator
  • [x] DoubleMLDIDCSBinary class
  • [x] Update DoubleMLDIDMulti class to support repeated cross-sections
  • [x] Updated plot_effects() method to color anticipation periods
  • [x] Added gt_combinations="universal" option to DoubleMLDIDMulti

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.

SvenKlaassen avatar Jun 02 '25 12:06 SvenKlaassen

@PhilippBach Maybe you can check specifically the argument naming. Further, I have updated plot_effects() to highlight anticipation periods.

SvenKlaassen avatar Jun 13 '25 07:06 SvenKlaassen