docs/source/rlm.rst
.. currentmodule:: statsmodels.robust
.. _rlm:
Robust linear models with support for the M-estimators listed under Norms_.
See Module Reference_ for commands and arguments.
.. ipython:: python
# Load modules and data
import statsmodels.api as sm
data = sm.datasets.stackloss.load()
data.exog = sm.add_constant(data.exog)
# Fit model and print summary
rlm_model = sm.RLM(data.endog, data.exog, M=sm.robust.norms.HuberT())
rlm_results = rlm_model.fit()
print(rlm_results.params)
Detailed examples can be found here:
Robust Models 1 <examples/notebooks/generated/robust_models_0.ipynb>_Robust Models 2 <examples/notebooks/generated/robust_models_1.ipynb>_.. toctree:: :maxdepth: 1
rlm_techn1
References ^^^^^^^^^^
.. module:: statsmodels.robust
Model Classes ^^^^^^^^^^^^^
.. module:: statsmodels.robust.robust_linear_model .. currentmodule:: statsmodels.robust.robust_linear_model
.. autosummary:: :toctree: generated/
RLM
Model Results ^^^^^^^^^^^^^
.. autosummary:: :toctree: generated/
RLMResults
.. _norms:
Norms ^^^^^
.. module:: statsmodels.robust.norms .. currentmodule:: statsmodels.robust.norms
.. autosummary:: :toctree: generated/
AndrewWave Hampel HuberT LeastSquares MQuantileNorm RamsayE RobustNorm TrimmedMean TukeyBiweight estimate_location
Scale ^^^^^
.. module:: statsmodels.robust.scale .. currentmodule:: statsmodels.robust.scale
.. autosummary:: :toctree: generated/
Huber
HuberScale
mad
hubers_scale
iqr
qn_scale