Click or drag to resize

UnivariateTwoWayAnovaTest Method

Performs a two-way analysis of variance.

Namespace:  Meta.Numerics.Statistics
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax
public static TwoWayAnovaResult TwoWayAnovaTest(
	IReadOnlyCollection<double>[,] samples
)

Parameters

samples
Type: System.Collections.GenericIReadOnlyCollectionDouble
A two-dimensional array of samples, all of which must have equal counts.

Return Value

Type: TwoWayAnovaResult
The result of the analysis.
Exceptions
ExceptionCondition
ArgumentNullExceptionsamples is , or one of its entries is .
InvalidOperationExceptionThe design is not complete or balanced.
Remarks

A two-way ANOVA analyzes the effects of two separate input factors, each with two or more nominal values, on a continuous output variable.

The only design supported is complete and balanced: samples must exist for all combinations of treatment factors, and each of those samples must contain the same number of data points. These samples are passed to the method as a two-dimensional array samples, whose (i, j)th entry contains the sample with the ith row factor value and jth column factor value.

For more information on ANOVA tests and when to use them, see the remarks for OneWayAnovaTest(IReadOnlyCollectionDouble).

See Also