Open lkursell opened 11 years ago
@clozupone, just wanted to make sure you saw this.
Hey Luke,
The standard t test will also fail if there is only a single sample in category. The cogent.maths.stats.test module has a function called t_one_observation that would work. I don't know if this is a common enough use case to prioritize this over adding non-parametric correlation and ANOVA tests. It should probably return a better error message though…
Cathy
On Apr 11, 2013, at 11:42 AM, Luke Ursell wrote:
If you're using ANOVA to compare two groups, group A which has 4 samples vs. group B which only has a single sample, you'll get the error: File "/Users/lukeursell/bin/QIIME/qiime/pycogent_backports/test.py", line 1251, in ANOVA_one_way F = between_MS/within_MS FloatingPointError: divide by zero encountered in double_scalars
Can this be fixed by allowing just a simple t_test to be a statistical option? @clozupone
— Reply to this email directly or view it on GitHub.
If you're using ANOVA to compare two groups, group A which has 4 samples vs. group B which only has a single sample, you'll get the error: File "/Users/lukeursell/bin/QIIME/qiime/pycogent_backports/test.py", line 1251, in ANOVA_one_way F = between_MS/within_MS FloatingPointError: divide by zero encountered in double_scalars
Can this be fixed by allowing just a simple t_test to be a statistical option? @clozupone