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’} or float, optional

Statistic used for centering observations. If a float, then this value is used to center. Default is median.

transform{‘abs’, ‘square’, ‘identity’} or callable, optional

The transform for the centered data.

trim_fracfloat in [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.

axisint, optional

Axis along which the data are transformed when centering.

Returns:
resndarray

Transformed data in the same shape as the original data.