Regress::ANOVA2 Function

TANOVA2Result ANOVA2(TMtx *Data, double &pRows, double &pCols, double &pInt, int Replications = 1, double Alpha = 0.05);

Performs balanced two-way analysis of variance (ANOVA).

#NameTypeDescription
1DataTMtx *Stores the data to me analyzed.
2pRowsdouble &Return the significance probability for the null hypothesis that rows, cols or interacted terms means are equal. These values have some meaning if Replications is more than 1. If any p is less than desired significance alpha then the result suggests the null hypothesis (rows mean, columns mean or interaction mean is not equal) can be rejected.
3pColsdouble &Return the significance probability for the null hypothesis that rows, cols or interacted terms means are equal. These values have some meaning if Replications is more than 1. If any p is less than desired significance alpha then the result suggests the null hypothesis (rows mean, columns mean or interaction mean is not equal) can be rejected.
4pIntdouble &Return the significance probability for the null hypothesis that rows, cols or interacted terms means are equal. These values have some meaning if Replications is more than 1. If any p is less than desired significance alpha then the result suggests the null hypothesis (rows mean, columns mean or interaction mean is not equal) can be rejected.
5Replications = 1intDefines the number of rows/cols replications.
6Alpha = 0.05doubleDesired significance level.
Remarks:

Performs balanced two-way analysis of variance on ranks of data contained in Data matrix. The two-way analysis of variance compares the means of two or more rows and two or more columns. The data in different columns can be interpreted as change of one factor and data in different rows can be interpreted as changes in other factor. If there is more than one observation per row/column then you can set the number of row/column replications by changing Replications value to appropriate factor. An exception will be raised if (Data.Rows mod Replications) is not zero. Example layout for replication factor 2:

        Group1      Group2        Group3       Group4
Trial1  xx          xx            xx           xx
        xx          xx            xx           xx
        xx          xx            xx           xx
Trial2  xx          xx            xx           xx
        xx          xx            xx           xx
        xx          xx            xx           xx

Both trials have 3 samples and data is in 4 groups.

See Also: Regress::ANOVA1
Declared in Dew::Stats::Units::Regress · Dew.Stats/Units.Regress.h · Cross-compiler