Repository navigation
MAINT: Follow-ups to the merged 7.2 pull requests - #896
Merged
Merged
Conversation
Follow-up to #884. The error of model_matrix_from_spec for new levels of categorical variables was only tested with one categorical variable, so the branch that skips a variable without new levels was not covered. With two categorical variables of which only one has new levels, the error names that variable alone. The test fails if the "if new:" check is removed.
Follow-up to #871, which places an unlabelled grid of exog or dependent by time period and entity, as the grids of weights, clusters and other_effects are placed. "Aligning Inputs" in the panel FAQ only described the grids of the other inputs; it now describes these too, with a versionchanged note. The 7.2 note of #871 is rewrapped to the width of the other notes.
#864 fixed the two-way clustered covariance of the IV models for float and string cluster labels, which 7.1 got wrong or rejected, and #878 made the clustered covariances faster, but neither had a 7.2 note. The note of the negative bandwidth fix cites #887 as well as #886, and the contributors of the pull requests merged since the list was started are thanked: echuq, AryanRG, soodoku, WeiLiuu and leninworld.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #896 +/- ##
=======================================
Coverage 99.69% 99.69%
=======================================
Files 206 206
Lines 39413 39418 +5
Branches 2537 2537
=======================================
+ Hits 39291 39297 +6
Misses 52 52
+ Partials 70 69 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Follow-ups to pull requests merged for 7.2, one commit each.
model_matrix_from_specfor new levels of categorical variables was only tested with one categorical variable, so the branch that skips a variable without new levels was not covered. With two categorical variables of which only one has new levels, the error names that variable alone. The test fails if theif new:check is removed. The other path that codecov reported on BUG: Build the regressors of formula predictions with the model's specification #884, a missing categorical value without a new level, changes in the fix for Formulas keep observations with a missing categorical value as the base level #891 (BUG: Drop observations with a missing categorical value in formulas #895), which tests it.other_effectsare placed, but not the grids ofexoganddependent, which BUG: Use dependent groups for positional panel inputs #871 places in the same way. It now does, with aversionchanged:: 7.2note. I checked the note's claim on 7.1: with the rows of the labelled input sorted by time, a grid of exog or dependent gives estimates that are off by 1.4 to 2.2 in five of the six panel models. The 7.2 note of BUG: Use dependent groups for positional panel inputs #871 is rewrapped to the width of the other notes.IV2SLS,IVLIMLandAbsorbingLSfor float and string cluster labels, and Batch cluster score sums and their cross-product #878 made the clustered covariances faster, but neither had a 7.2 note. The four tests of BUG: Do not depend on the labels in two-way clustered IV covariances #864 fail on 7.1: float labels give wrong standard errors and string labels raise. The note of the negative bandwidth fix cites BUG: Reject negative bandwidths in panel and IV kernel estimators #887 as well as its issue, BUG: Panel and IV kernel estimators accept a negative bandwidth #886, and the contributors of the pull requests merged since the list was started are thanked: echuq, AryanRG, soodoku, WeiLiuu and leninworld.#885 and #890 have no follow-up left.
The whole suite passes (pip-pre: Python 3.14, NumPy and pandas development versions), with no new warnings.
🤖 Generated with Claude Code