[Scipy-tickets] [SciPy] #1258: Contingency Table Class

SciPy Trac scipy-tickets@scipy....
Sat Nov 27 08:50:27 CST 2010


#1258: Contingency Table Class
-------------------------------+--------------------------------------------
 Reporter:  scopatz            |       Owner:  somebody    
     Type:  enhancement        |      Status:  needs_review
 Priority:  normal             |   Milestone:  0.9.0       
Component:  scipy.stats        |     Version:  0.7.0       
 Keywords:  contingency table  |  
-------------------------------+--------------------------------------------
Changes (by rgommers):

  * status:  new => needs_review


Comment:

 This would be a nice addition to the stats module. A few comments:

   * use {{{ddof}}} instead of {{{dof}}} like in the rest of the stats
 module.
   * use stats.chisquare instead of reimplementing this calculation in the
 chi_square method. same for {{{p_value}}} method.
   * the docstrings are reasonably complete but need some work to adhere to
 the standard, especially the type parts of parameters/returns
   * {{{from_columns}}} and {{{from_flat}}} should probably be separate
 functions instead of methods. The first argument of these two methods
 should not be optional, and they need an example in the docstring.
   * it would be useful to add a kendall_tau method (for all tables) and a
 fisher_exact one (for 2x2 tables only for now) in addition to chisquare.
 And in the class docstring explain when normally to use which of those
 methods.
   * excellent test coverage!

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1258#comment:1>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list