public void TwoWayAnovaConstructorTest2()
{
// Example by Aalborg Universitet
// http://www.smi.hst.aau.dk/~cdahl/BiostatPhD/ANOVA.pdf
double[] samples =
{
16.3, 20.4, 12.4, 15.8, 9.5, // female, no hormone
15.3, 17.4, 10.9, 10.3, 6.7, // male, no hormone
38.1, 26.2, 32.3, 35.8, 30.2, // female, hormone
34.0, 22.8, 27.8, 25.0, 29.3, // male, hormone
};
int[] hormone =
{
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1
};
int[] sex =
{
0, 0, 0, 0, 0, 1, 1, 1, 1, 1,
0, 0, 0, 0, 0, 1, 1, 1, 1, 1
};
TwoWayAnova target = new TwoWayAnova(samples, hormone, sex, TwoWayAnovaModel.Mixed);
testSources(target);
}