Statistics::RatioVariance - Ratio and associated variance calculation.
my %zdNResults = RatioVariance->calc(\@x,\@y,\@x_var,\@y_var); foreach my $key (keys %result){ print "$key = $result{$key}\n";
For two vectors of means (X and Y) and its associated sets of variances (V[X] and V[Y]), this function calculates the rate (R) as:
R = sum(X)/sum(Y)
being sum(X) and sum(Y) the sum of all elements in the set, respectively. Also, it estimates the associated variance for R using Taylor expansion and taking into account the correlation between X and Y.
Furthermore, the function run a Z-Test to evaluate if R shifts from the unit significatively.
Version 1.00
Launch the complete algorithm.
Hector Valverde, <hvalverde at uma.es>
<hvalverde at uma.es>
Juan Carlos Aledo, <caledo@uma.es>
<caledo@uma.es>
Please report any bugs or feature requests to bug-statistics-ratiovariance at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Statistics-RatioVariance. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-statistics-ratiovariance at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Statistics::RatioVariance
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Statistics-RatioVariance
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Statistics-RatioVariance
CPAN Ratings
http://cpanratings.perl.org/d/Statistics-RatioVariance
Search CPAN
http://search.cpan.org/dist/Statistics-RatioVariance/
Copyright 2012 Hector Valverde.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Statistics::RatioVariance, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Statistics::RatioVariance
CPAN shell
perl -MCPAN -e shell install Statistics::RatioVariance
For more information on module installation, please visit the detailed CPAN module installation guide.