Add Class for Repeated Cross-Sectional Data#330
Merged
SvenKlaassen merged 95 commits intomainfrom Jul 7, 2025
Merged
Conversation
3 tasks
306 refactor data generators
Jan teichert kluge/issue272
Update DoubleML __str__ method
…ldata-class' into s-update-cross-sectional-did
PhilippBach
reviewed
Jul 1, 2025
Member
PhilippBach
left a comment
There was a problem hiding this comment.
thanks for adding the repeated CS case for DiD (among the other features like universal period configurations and anticipation periods in plots) in this PR. I have added some edits in #345 which you may want to check out - but they are not really critical
We can then take care of DoubleML/doubleml-docs#243 for adding some documentation
PhilippBach
approved these changes
Jul 7, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a analog to
DoubleMLDIDMultifor repeated cross-sectional data.The changes include:
make_did_cs_CS2021data generatorDoubleMLDIDCSBinaryclassDoubleMLDIDMulticlass to support repeated cross-sectionsplot_effects()method to color anticipation periodsgt_combinations="universal"option toDoubleMLDIDMultiFurther, generalize the
__str__method in theDoubleMLclass to allow for flexible output, e.g. seeDoubleMLBinary.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).