statsmodels.stats.robust_compare.scale_transform¶
-
statsmodels.stats.robust_compare.scale_transform(data, center=
'median', transform='abs', trim_frac=0.2, axis=0)[source]¶ Transform data for variance comparison for Levene type tests
- Parameters:¶
- data : array_like¶
Observations for the data.
- center : "median", "mean", "trimmed" or float¶
Statistic used for centering observations. If a float, then this value is used to center. Default is median.
- transform : 'abs', 'square', 'identity' or a callable¶
The transform for the centered data.
- trim_frac : float in [0, 0.5)¶
Fraction of observations that are trimmed on each side of the sorted observations. This is only used if center is trimmed.
- axis : int¶
Axis along which the data are transformed when centering.
- Returns:¶
res – transformed data in the same shape as the original data.
- Return type:¶
ndarray