You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ENH: weightstats CompareMeans add from_data and summary methods #2569
to make the interface more convenient in weightstats CompareMeans, we could add from_data and summary methods.
summary could print a summary table (1 row) similar to LikelihoodResults.t_test and Contrast
Note: weightstats CompareMeans was written before Contrast results gained the summary and other enhancements, and we never checked for adding similar improvements.
@josef-pkt , I've got some questions.
As I see, summary in CompareMeans will contain results of t-test and z-test in a format similar to the output of t.test(a,b, paired=TRUE, alt="less") in R. Why is it only one row, maybe bigger? Or it only contains results of one test like in ContrastResults.summary?
Also a purpose of from_data in CompareMeans is not clear for me. I found the same function only in contingency_tables.py and it constructs contingency tables.
Activity
ValeryTyumen commentedon Dec 17, 2015
I would like to do this as my first PR
josef-pkt commentedon Dec 17, 2015
great, thanks
you can look around in the code to find reusable parts or parts that can be copied. If you need help, just ask.
see #2725 for a related discussion on adding
summaryor prints (__repr__or__str__)ValeryTyumen commentedon Jan 4, 2016
@josef-pkt , I've got some questions.
As I see,
summaryin CompareMeans will contain results of t-test and z-test in a format similar to the output oft.test(a,b, paired=TRUE, alt="less")in R. Why is it only one row, maybe bigger? Or it only contains results of one test like inContrastResults.summary?Also a purpose of
from_datainCompareMeansis not clear for me. I found the same function only incontingency_tables.pyand it constructs contingency tables.ValeryTyumen commentedon Jan 13, 2016
#2754
MishaVeldhoen commentedon Jul 27, 2018
Seems like this was implemented, and the issue can be closed.