statsmodels.stats.oneway.scale_transform#
- statsmodels.stats.oneway.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{‘median’, ‘mean’, ‘trimmed’}
orfloat,optional Statistic used for centering observations. If a float, then this value is used to center. Default is median.
- transform{‘abs’, ‘square’, ‘identity’}
orcallable,optional The transform for the centered data.
- trim_frac
floatin[0, 0.5),optional Fraction of observations that are trimmed on each side of the sorted observations. This is only used if center is trimmed.
- axis
int,optional Axis along which the data are transformed when centering.
- Returns:
- res
ndarray Transformed data in the same shape as the original data.
- res