[Scipy-tickets] [SciPy] #1270: stats.levene requires additional argument when center='trimmed'

SciPy Trac scipy-tickets@scipy....
Mon Sep 6 15:07:48 CDT 2010


#1270: stats.levene requires additional argument when center='trimmed'
-------------------------+--------------------------------------------------
 Reporter:  gilxra       |       Owner:  somebody
     Type:  defect       |      Status:  new     
 Priority:  normal       |   Milestone:  0.9.0   
Component:  scipy.stats  |     Version:          
 Keywords:  levene       |  
-------------------------+--------------------------------------------------
 If center = 'trimmed' when using Scipy's levene's test then the following
 error is thrown:

 File "<stdin>", line 1, in <module>
 File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages/scipy/stats/morestats.py", line 729, in levene
     Yci[j] = func(args[j])
 TypeError: trim_mean() takes exactly 2 arguments (1 given)

 Presumably the levene function requires an additional keyword argument
 that represents the proportion to be trimmed which is passed to the
 trim_mean() function.

 OS: MacOSx10.6
 Python: 2.6.4
 Scipy: 0.7.1

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


More information about the Scipy-tickets mailing list