statsmodels.stats.weightstats.CompareMeans.from_data

classmethod CompareMeans.from_data(data1, data2, weights1=None, weights2=None, ddof1=0, ddof2=0)[source]

construct a CompareMeans object from data

Parameters:
data1, data2array_like, 1-D or 2-D

compared datasets

weights1, weights2None or 1-D ndarray

weights for each observation of data1 and data2 respectively, with same length as zero axis of corresponding dataset.

ddof1, ddof2int

default ddof1=0, ddof2=0, degrees of freedom for data1, data2 respectively.

Returns:
A CompareMeans instance.

Last update: Dec 16, 2024