statsmodels.robust.scale.MScale.fit#
- MScale.fit(data, start_scale='mad', maxiter=100, rtol=1e-06, atol=1e-08)[source]#
Estimate M-scale using iteration
- Parameters:
- dataarray_like
Data, currently assumed to be 1-dimensional.
- start_scale
strorfloat Starting value of scale or method to compute the starting value. Default is using ‘mad’, no other string options are available.
- maxiter
int Maximum number of iterations.
- rtol
float Relative convergence tolerance.
- atol
float Absolute convergence tolerance.
- Returns:
floatScale estimate. The estimated variance is scale squared.
Notes
TODO: switch to Holder instance with more information.