statsmodels.stats.robust_compare.trim_mean¶
- statsmodels.stats.robust_compare.trim_mean(a, proportiontocut, axis=0)[source]¶
Return mean of array after trimming observations from both lower and upper tails.
If proportiontocut = 0.1, slices off ‘leftmost’ and ‘rightmost’ 10% of scores. Slices off LESS if proportion results in a non-integer slice index (i.e., conservatively slices off proportiontocut ).
- Parameters:
- Returns:
- trim_mean
ndarray
Mean of trimmed array.
- trim_mean