statsmodels.stats.robust_compare.TrimmedMean.reset_fraction#

TrimmedMean.reset_fraction(frac)[source]#

Create a TrimmedMean instance with a new trimming fraction

This reuses the sorted array from the current instance.

Parameters:
fracfloat in (0, 0.5)

The fraction of observations to trim at each tail.

Returns:
TrimmedMean

Instance of TrimmedMean with the new trimming fraction.