Click or drag to resize

TwoWayAnova Class

Class TwoWayAnova performs a balanced two-way analysis of variance.
Inheritance Hierarchy

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 7.4
Syntax
[SerializableAttribute]
public class TwoWayAnova : TwoWayAnovaBase, 
	ICloneable

The TwoWayAnova type exposes the following members.

Constructors
  NameDescription
Protected methodTwoWayAnova
No argument contructor. Used primarily for serialization.
Public methodTwoWayAnova(DataFrame, Int32, Int32, Int32)
Constructs a TwoWayAnova instance from data in the given data frame.
Top
Properties
  NameDescription
Public propertyAnovaTable
Gets a traditional two-way ANOVA table.
Public propertyGrandMean
Gets the grand mean.
(Overrides TwoWayAnovaBaseGrandMean.)
Public propertyRegressionFactorParameters
Gets the array of estimates for the linear regression parameters corresponding to the dummy variables for the different factor levels.
Public propertyRegressionInteractionParameters
Gets the array of estimates for the linear regression parameters corresponding to the dummy variables for the interactions.
Public propertyRegressionInterceptParameter
Gets the intercept parameter from the linear regression that was used to compute the ANOVA.
(Overrides TwoWayAnovaBaseRegressionInterceptParameter.)
Top
Methods
  NameDescription
Public methodClone
Creates a deep copy of this TwoWayAnova.
Protected methodComputeAnova
Compute the ANOVA for the given data.
Protected methodComputeFactorSumsOfSquares
Fill in the DoubleVector parameterSumsOfSquares_ with the sums of squares for the parameters used in the regression that is used to compute the ANOVA.
Protected methodComputeFactorSumsOfSquares(DoubleMatrix)
Fill in the DoubleVector parameterSumsOfSquares_ with the sums of squares for the parameters used in the regression that is used to compute the ANOVA.
(Inherited from TwoWayAnovaBase.)
Protected methodComputeFactorSumsOfSquares(LinearRegression, Int32, Int32, Int32)
Fill in the DoubleVector parameterSumsOfSquares_ with the sums of squares for the parameters used in the regression that is used to compute the ANOVA.
(Inherited from TwoWayAnovaBase.)
Protected methodCreateAnovaTable
Create the ANOVA table for this object.
Protected methodFillInRegressionMatrix
Fill in the regression matrix that is to be used for computing the ANOVA.
Public methodGetCellData
Returns all the data in a cell, as defined by the levels of the two factors in the ANOVA.
(Inherited from TwoWayAnovaBase.)
Public methodGetMeanForCell
Returns the mean for the specified cell, as defined by the levels of the two factors in the ANOVA.
(Inherited from TwoWayAnovaBase.)
Public methodGetMeanForFactorLevel
Returns the mean for the specified factor level.
(Inherited from TwoWayAnovaBase.)
Public methodGetRegressionFactorParameter
Returns the regression parameter associated with the specified factor level.
Protected methodGetRegressionFactorParameters
Fills in the array of AnovaRegressionFactorParam objects.
Public methodGetRegressionInteractionParameter
Returns the regression parameter associated with the specified interaction.
Protected methodGetRegressionInteractionParameters
Fill in the array of AnovaRegressionInteractionParam objects.
Protected methodInterceptParameterSumOfSquares
Compte the sum of squares associated with the regression's intercept parameter.
(Inherited from TwoWayAnovaBase.)
Protected methodMakeCellData
Fills in the cell data for a two way ANOVA from the given data frame and column information.
(Inherited from TwoWayAnovaBase.)
Protected methodMakeFactorParameters(Int32)
Create the array of AnovaRegressionFactorParam objects, one for each regression dummy variable. The sums of squares for each of these parameters is assumed to have been computed are are stored in the DoubleVector instance variable parameterSumsOfSquares with the parameters for factor A first, followed by the parameters for factor B and starting at the given index.
Protected methodMakeFactorParameters(LinearRegression, DoubleVector, Int32, Factor)
Create the array of AnovaRegressionFactorParam objects, one for each regression dummy variable. The sums of squares for each of these parameters is assumed to have been computed are are stored in the DoubleVector instance variable parameterSumsOfSquares with the parameters for factor A first, followed by the parameters for factor B and starting at the given index.
(Inherited from TwoWayAnovaBase.)
Protected methodMakeInteractionParameters(Int32)
Creates the array of AnovaRegressionInteractionParam objects using the DoubleVector instance variable parameterSumsOfSquares_. The sums of squares for the interaction parameters are assumed to begin at the given index.
Protected methodMakeInteractionParameters(LinearRegression, DoubleVector, Int32)
Creates the array of AnovaRegressionInteractionParam objects using the DoubleVector instance variable parameterSumsOfSquares_. The sums of squares for the interaction parameters are assumed to begin at the given index.
(Inherited from TwoWayAnovaBase.)
Public methodToString
Returns a formatted string representation of a traditional two-way analysis of variance table.
(Overrides ObjectToString.)
Top
Fields
  NameDescription
Protected fieldanovaTable_
A traditional ANOVA table representation of the results.
Protected fieldcells_
The ANOVA data broken up into cells.
(Inherited from TwoWayAnovaBase.)
Protected fieldfactorA_
One of the factors in the ANOVA
(Inherited from TwoWayAnovaBase.)
Protected fieldfactorB_
The other factor in the ANOVA.
(Inherited from TwoWayAnovaBase.)
Protected fieldfactorParameters_
Stats for the regression parameters corresponding to the two factors.
Protected fieldinteractionParameters_
Stats for the regression parameters corresponding to the interaction between the two factor.
Protected fieldinterceptParameter_
Stats for the regression intercept parameter.
Protected fieldlr_
The linear regression used to compute the ANOVA
Protected fieldlrAnova_
The ANOVA for the linear regression.
Protected fieldobservations_
The observation vector for the regression used to compute the ANVOA.
(Inherited from TwoWayAnovaBase.)
Protected fieldparameterSumsOfSquares_
The sums of squares for all the parameters in the regression. These are in the same order as the regression parameters.
Protected fieldregressionMatrix_
The regression matrix used to compute the ANOVA.
Top
See Also