NAME
Statistics::MVA::HotellingTwoSample - Two-Sample Hotelling's T-Square Test Statistic.
VERSION
This document describes Statistics::MVA::HotellingTwoSample version 0.0.2
SYNOPSIS
use Statistics::MVA::HotellingTwoSample;
# we have two groups of data each with 4 variables and 9 observations.
my $data_x = [
[qw/ 292 222 52 57/],
[qw/ 100 227 51 45/],
[qw/ 272 218 49 36/],
[qw/ 101 221 17 47/],
[qw/ 181 208 12 35/],
[qw/ 111 118 51 54/],
[qw/ 288 321 51 49/],
[qw/ 286 219 52 45/],
[qw/ 262 225 47 44/],
];
my $data_y = [
[qw/ 286 107 29 62/],
[qw/ 311 122 29 63/],
[qw/ 272 131 52 86/],
[qw/ 182 88 23 69/],
[qw/ 211 118 61 57/],
[qw/ 323 127 51 79/],
[qw/ 385 332 70 63/],
[qw/ 373 127 85 60/],
[qw/ 408 95 57 71/],
];
# Create a Statistics::MVA::HotellingTwoSample object and pass the data as two Lists-of-Lists within an anonymous array.
my $mva = Statistics::MVA::HotellingTwoSample->new([ $data_x, $data_y ]);
# Generate results and print a report to STDOUT by calling hotelling_two_sample in void context.
$mva->hotelling_two_sample;
# Call hotelling_two_sample in LIST-context to access the results directly.
my ($T2, $F, $pval, $df1, $df2) = $mva->hotelling_two_sample;
DESCRIPTION
Hotelling's T-square statistics is a generalisation of Student's t statistic that is used for multivariate hypothesis testing. See http://en.wikipedia.org/wiki/Hotelling%27s_T-square_distribution.
DEPENDENCIES
'Statistics::MVA' => '0.0.1', 'Carp' => '1.08', 'Statistics::Distributions' => '1.02',
BUGS AND LIMITATIONS
Let me know.
AUTHOR
Daniel S. T. Hughes <dsth@cantab.net>
LICENCE AND COPYRIGHT
Copyright (c) 2010, Daniel S. T. Hughes <dsth@cantab.net>
. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
DISCLAIMER OF WARRANTY
Because this software is licensed free of charge, there is no warranty for the software, to the extent permitted by applicable law. Except when otherwise stated in writing the copyright holders and/or other parties provide the software "as is" without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. The entire risk as to the quality and performance of the software is with you. Should the software prove defective, you assume the cost of all necessary servicing, repair, or correction.
In no event unless required by applicable law or agreed to in writing will any copyright holder, or any other party who may modify and/or redistribute the software as permitted by the above licence, be liable to you for damages, including any general, special, incidental, or consequential damages arising out of the use or inability to use the software (including but not limited to loss of data or data being rendered inaccurate or losses sustained by you or third parties or a failure of the software to operate with any other software), even if such holder or other party has been advised of the possibility of such damages.