Skip to content

TST: Run the MixedLM case of test_nullable_with_missing - #11295

Open
shan3520 wants to merge 1 commit into
statsmodels:mainfrom
shan3520:tst-mixedlm-missing-unskip
Open

shan3520 wants to merge 1 commit into
statsmodels:mainfrom
shan3520:tst-mixedlm-missing-unskip

Conversation

@shan3520

Copy link
Copy Markdown
Contributor

xref #7978

Removes the 2-line skip for MixedLM from test_nullable_with_missing (statsmodels/base/tests/test_input_dtypes.py), which was added in #10524, just 2 days before #10467 fixed missing='drop' support for MixedLM. Now all 82 tests in this file succeed (80 passed and 2 skipped before), ruff check succeeds, and testing against mixed_linear_model.py before #10467 fails both the Int64 and Float64 cases with IndexError: index 98 is out of bounds for axis 0 with size 98, verifying that the test is testing the bugfix. No changelog note added because this only affects tests.

AI Disclosure

Contributions must comply with the statsmodels AI Policy.

Tick exactly one of the following. If AI tools were used, replace the <...>
placeholders in the second option with the tool name(s) and how the tool's output was
used.

  • No AI tools were used to develop this pull request.
  • AI tools were used.
    Tool(s): Claude Code (Claude Opus 5.5).
    Used for: finding the leftover skip, and checking that the test passes without it and fails before #10467.
    I have personally read, understood, and can explain every line of this diff, and
    have verified the statistical/numerical correctness of the change.

The case was skipped because MixedLM did not support missing="drop"
(GH 7978), which has been fixed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant