return an instance of CompareMeans with self and other
other : array_like or instance of DescrStatsW
If array_like then this creates an instance of DescrStatsW with the given weights.
weights : None or array
weights are only used if other is not an instance of DescrStatsW
cm : instance of CompareMeans
the instance has self attached as d1 and other as d2.
See also
CompareMeans
statsmodels.stats.weightstats.DescrStatsW.demeaned
statsmodels.stats.weightstats.DescrStatsW.mean
Enter search terms or a module, class or function name.