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 (array_like, 1-D or 2-D) – compared datasets
data2 (array_like, 1-D or 2-D) – compared datasets
weights1 (None or 1-D ndarray) – weights for each observation of data1 and data2 respectively, with same length as zero axis of corresponding dataset.
weights2 (None or 1-D ndarray) – weights for each observation of data1 and data2 respectively, with same length as zero axis of corresponding dataset.
ddof1 (int) – default ddof1=0, ddof2=0, degrees of freedom for data1, data2 respectively.
ddof2 (int) – default ddof1=0, ddof2=0, degrees of freedom for data1, data2 respectively.
- Return type:
A CompareMeans instance.