On Tue, 7 Jun 2005, Frank Lee wrote:

> Can anybody give me some ideas about how to use perl module to do 
> Z-scores test (Say, Wilcoxon).?

1. Find the module. 

2. Look up the Perldoc that describes how to use it.

3. Use it.


I'll be glad to help you a bit with step #1 there.


A search for Z-score on search.cpan.org --

    <http://search.cpan.org/search?query=z-score&mode=all>

-- turns up a number of hits, all of which seem to be applying the 
concept of Z-scores to different problem domains. Depending on what 
you're doing, one of these may be helpful to you. To pick one at random, 
the Bio::Search::HSP::HMMERHSP module has the following:

    Plus Bio::Seach::HSP::GenericHSP methods
           [...]
           -score     => score value for HSP (typically z-score but 
                                              depends on analysis)

    <http://search.cpan.org/dist/bioperl/Bio/Search/HSP/HMMERHSP.pm>

That may or may not be useful to you.

If you need something more generic, maybe a search for "statistics" will 
provide a more general-purpose module. Sure enough, this turns up:

    Bundle::Math::Statistics
    <http://search.cpan.org/~smueller/Bundle-Math-Statistics-1.01/Statistics.pm>

That, in turn, includes modules like Statistics::Contingency, et al.

    
<http://search.cpan.org/~kwilliams/Statistics-Contingency-0.06/Contingency.pm>

Maybe that'll help.

As a search for "Wilcoxon" doesn't seem to turn up any hits, you may be 
running out of options. If you're still stuck, the next place to look 
may be the book _Mastering Algorithms with Perl_, which has a chapter or 
two on statistical programming in Perl. Unfortunately, I don't see 
Z-score in the index, but I do see Z-test; my statistics are too rusty 
for me to remember if these are the same thing or not. 

    <http://www.oreilly.com/catalog/maperl/inx.html#Z>

But there's a bunch of samples of statistical algorithms in that book, 
along with explantions of how they work & how to use them. If all else 
fails, that might be enough to help you get started on rolling your own. 

Helpful?

Sorry to only provide pointers rather than direct help, but as I, err, 
don't remember much about Z-scores, I can't be more concrete than that. 
If none of this has helped, then maybe it would help if you could 
describe the basic algorithm & the list readers can help show you how to 
implement it in Perl... :-/



-- 
Chris Devers

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to