[SciPy-user] stats.anova problem

Louis Luangkesorn lluang at yahoo.com
Sun Jan 20 00:59:45 CST 2002


I'm trying to test the anova package.  But I'm doing something
wrong here.  This is what I try.

import scipy
anovadata = ([[1,'A1','B1',2],


Then, I get:

Traceback (most recent call last):
  File "C:\apps\Python\Pythonwin\pywin\framework\scriptutils.py",
line 301, in RunScript
    exec codeObject in __main__.__dict__
  File "C:\Documents and Settings\kll560\My
Documents\testdata\anovatest.py", line 16, in ?
  File "C:\apps\Python\scipy\stats\stats.py", line 234, in __call__
    return apply(self._dispatch[type(arg1)], (arg1,) + args, kw)
  File "C:\apps\Python\scipy\stats\stats.py", line 3933, in aanova
    M = pstat.collapse(data,Bscols,-1,None,None,mean)
TypeError: collapse() takes at most 5 arguments (6 given)

By the way, in pstats.py, the call for collapse() is in line 183:

def collapse

Any ideas?


When I consider your heavens, the work of your fingers,
the moon and the stars, which you have set in place,
what is man that you are mindful of him, the son of man that you care for him?    Psalm 8:3-4
Y!M, AOL, jabber.com: lluang

Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!

More information about the SciPy-user mailing list