Repository navigation
BUG: support model-aware RLM scale callbacks - #10191
Merged
bashtage merged 2 commits intoAug 25, 2026
Merged
Conversation
Allow callable scale estimators to accept the fitted model and residuals while preserving existing single-argument callback behavior. Closes statsmodels#9171 Co-authored-by: Copilot <[email protected]>
Use try except to avoid inspect Add examples to docs Add test of equivalence
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.
Allow callable scale estimators to accept the fitted model and residuals while preserving existing single-argument callback behavior.
Closes #9171
NumPy's guide.
AI Disclosure
Contributions must comply with the statsmodels AI Policy.
If using AI tools, edit the second option to explain which tool was selected and
how the tool's output was used.
Please complete one of the following:
Tool(s): Copilot?
Used for: Based on another PR, looks like critten using copilot
I have personally read, understood, and can explain every line of this diff, and
have verified the statistical/numerical correctness of the change.
Details
Notes:
needed for doc changes.
then show that it is fixed with the new code.
verify you changes are well formatted by running
flake8is installed. This command is also available on Windowsusing the Windows System for Linux once
flake8is installed in thelocal Linux environment. While passing this test is not required, it is good practice and it help
improve code quality in
statsmodels.AI Policy for what disclosure
and review is expected of you before submitting.