Skip to content

BUG/ENH: fix scale.Huber and add robust MScale - #9210

Merged
josef-pkt merged 6 commits into
statsmodels:mainfrom
josef-pkt:robust_mscale
Apr 19, 2024
Merged

josef-pkt merged 6 commits into
statsmodels:mainfrom
josef-pkt:robust_mscale

Conversation

@josef-pkt

@josef-pkt josef-pkt commented Apr 15, 2024 •

Copy link
Copy Markdown
Member

see
#4749 bug in Huber
#9171 allow MScale in RLM scale_est, add generic MScale class

This does not include fixes for naming and default inconsistencies in current code.

This now also allows fixed user provided scale in RLM, start_scale
I did not change behavior of init. It's broken unless user sets model.scale before fit.
issue #9211

Also it moves scale_tau from robust.covariance to robust.scale (followup to #8129

@josef-pkt

Copy link
Copy Markdown
Member Author

that's about finished to keep PR small

maybe more unit tests

aside:
scale_tau was written for ogk and hardcodes bisquare mean and winsorized (huber) scale
I have not looked at generic versions of tau scale for arbitrary psi and chi/rho.
But the same tau scale function is used in regression setting, e.g. DetR package uses it for MM-estimator instead of M-scale.

@josef-pkt

Copy link
Copy Markdown
Member Author

all green, except unrelated failures

merging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants