statsmodels.robust.resistant_linear_model.RLMDetSMM#
- class statsmodels.robust.resistant_linear_model.RLMDetSMM(endog, exog, norm=None, efficiency=0.95, breakdown_point=0.5, col_indices=None, include_endog=False)[source]#
MM-estimator with S-estimator starting values.
- Parameters:
- endogarray_like, 1-dim
Dependent, endogenous variable.
- exogarray_like, 1-dim
Independent, exogenous regressor variables.
- norm
robustnorm Redescending robust norm used for S- and MM-estimation. Default is TukeyBiweight.
- efficiency
floatin(0, 1) Asymptotic efficiency of the MM-estimator (used in second stage).
- breakdown_point
floatin(0, 0.5) Breakdown point of the preliminary S-estimator.
- col_indices
Noneor array_likeofints Index of columns of exog to use in the mahalanobis distance computation for the starting sets of the S-estimator. Default is all exog except first column (constant). Todo: will change when we autodetect the constant column.
- include_endogbool
If true, then the endog variable is combined with the exog variables to compute the mahalanobis distances for the starting sets of the S-estimator.
- Attributes:
endog_namesNames of endogenous variables
exog_namesNames of exogenous variables
Methods
fit([h, scale_binding, start])Estimate the model
from_formula(formula, data[, subset, drop_cols])Create a Model from a formula and dataframe
predict(params[, exog])After a model has been fit, predict returns the fitted values
Methods
fit([h, scale_binding, start])Estimate the model
from_formula(formula, data[, subset, drop_cols])Create a Model from a formula and dataframe
predict(params[, exog])After a model has been fit, predict returns the fitted values
Properties
Names of endogenous variables
Names of exogenous variables