Subject: | bug about kruskalwallis modle |
Date: | Sat, 29 Oct 2011 08:39:26 +0800 (CST) |
To: | bug-Statistics-KruskalWallis [...] rt.cpan.org |
From: | j.laurel12 [...] gmail.com |
Hello,
I got a bug when I used this module to work to multiple samples test. The partial code as follows:
for(my $i=1;$i<=5;$i++)
{
$kw->load_data("group $i",@{groups[$i-1]});
}
Those code could not get the right result.
So, I had to write several lines like below:
$kw->load_data('group 1',@{$groups[0]});
$kw->load_data('group 2',@{$groups[1]});
$kw->load_data('group 3',@{$groups[2]});
$kw->load_data('group 4',@{$groups[3]});
$kw->load_data('group 5',@{$groups[4]});
$kw->load_data('group 6',@{$groups[5]});
module web site :http://search.cpan.org/~mglee/Statistics-KruskalWallis-0.01/KruskalWallis.pm
It may be not convenient, when one who are not sure how many samples will input to the script.
Thanks for your attention!
best,
yours truly,
xiaofeng
BE BRAVE TO FACE MATTERES