statsmodels.robust.covariance.CovDetS.fit#
- CovDetS.fit(*, h_start=None, mean_func=None, scale_func=None, maxiter=100, options_start=None, maxiter_step=5)[source]#
Compute S-estimator of mean and covariance
- Parameters:
- h_start
int Number of observations used in starting mean and covariance.
- mean_func, scale_func
callableorNone Mean and scale function for initial standardization. Current defaults, if they are None, are median and mad, but default scale_func will likely change.
- maxiter
int Maximum number of iterations for the c-step of the best candidate solution.
- options_start
Noneordict Options for the starting estimators. TODO: which options? e.g., for OGK
- maxiter_step
int Number of iterations used for each starting candidate before selecting the best one for further iteration.
- h_start
- Returns:
CovMResultNamed tuple with mean, shape, scale, cov and extra attributes scale_all, idx_best, tmean, tscale from the starting-set search. See
CovMResultfor details.