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

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_fracfloat 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.

axisint

Axis along which the data are transformed when centering.

Returns:
resndarray

transformed data in the same shape as the original data.


Last update: Apr 12, 2024