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
- dataarray_like
observations for the data
- center
str
in
[‘median’, ‘mean’, ‘trimmed’] the statistic that is used as center for the data transformation
- 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
ndarray
transformed data in the same shape as the original data.
- res