Click or drag to resize

TwoWayRanova Class

Class TwoWayRanova performs a balanced two-way analysis of variance with repeated measures on one factor.
Inheritance Hierarchy
SystemObject
  CenterSpace.NMath.CoreTwoWayAnovaBase
    CenterSpace.NMath.CoreTwoWayAnova
      CenterSpace.NMath.CoreTwoWayRanova

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

The TwoWayRanova type exposes the following members.

Constructors
 NameDescription
Protected methodTwoWayRanova No argument contructor. Used primarily for serialization.
Public methodTwoWayRanova(DataFrame, Int32, Int32, Int32) Constructs a TwoWayRanova instance, with repeated measures on one factor, from the given data frame.
Top
Properties
 NameDescription
Public propertyAnovaTable Gets a traditional two-way ANOVA table.
(Inherited from TwoWayAnova)
Public propertyGrandMean Gets the grand mean.
(Inherited from TwoWayAnova)
Public propertyRanovaTable Gets a traditional two-way RANOVA table.
Public propertyRegressionFactorParameters Gets the array of estimates for the linear regression parameters corresponding to the dummy variables for the different factor levels.
(Inherited from TwoWayAnova)
Public propertyRegressionInteractionParameters Gets the array of estimates for the linear regression parameters corresponding to the dummy variables for the interactions.
(Inherited from TwoWayAnova)
Public propertyRegressionInterceptParameter Gets the intercept parameter from the linear regression that was used to compute the ANOVA.
(Inherited from TwoWayAnova)
Public propertyRegressionSubjectParameters Gets the array of estimates for the linear regression parameters corresponding to the dummy variables for the different subjects.
Top
Methods
 NameDescription
Public methodClone Creates a deep copy of this TwoWayRanova.
(Overrides TwoWayAnovaClone)
Protected methodComputeAnova Compute the ANOVA for the given data.
(Inherited from TwoWayAnova)
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.
(Inherited from TwoWayAnova)
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.
(Overrides TwoWayAnovaCreateAnovaTable)
Protected methodFillInRegressionMatrix Fills in the regression matrix and observation vector used in computing the ANOVA.
(Overrides TwoWayAnovaFillInRegressionMatrix(DataFrame, Int32, Int32, Int32))
Protected methodFillInSubjectMatrix Fills in a matrix with the values of subject dummy variables used as a part of the regression matrix for the regression that is used to compute the RANOVA. This subject matrix will have ones on the main diagonal up to, but not including the last row. The last row will be all -1. All other elements are zero. This corresponds to the following encoding of the subject dummy variables: If there are n subjects and the ith value of the dummy variable is denoted by Si, then Si = 1, if person i and i is strictly less than n Si = -1, if person n Si = 0, otherwise.
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.
(Inherited from TwoWayAnova)
Protected methodGetRegressionFactorParameters Fills in the array of AnovaRegressionFactorParam objects.
(Overrides TwoWayAnovaGetRegressionFactorParameters)
Public methodGetRegressionInteractionParameter Returns the regression parameter associated with the specified interaction.
(Inherited from TwoWayAnova)
Protected methodGetRegressionInteractionParameters Fill in the array of AnovaRegressionInteractionParam objects.
(Overrides TwoWayAnovaGetRegressionInteractionParameters)
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.
(Inherited from TwoWayAnova)
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.
(Inherited from TwoWayAnova)
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.
(Inherited from TwoWayAnova)
Top
Fields
 NameDescription
Protected fieldanovaTable_ A traditional ANOVA table representation of the results.
(Inherited from TwoWayAnova)
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.
(Inherited from TwoWayAnova)
Protected fieldinteractionParameters_ Stats for the regression parameters corresponding to the interaction between the two factor.
(Inherited from TwoWayAnova)
Protected fieldinterceptParameter_ Stats for the regression intercept parameter.
(Inherited from TwoWayAnova)
Protected fieldlr_ The linear regression used to compute the ANOVA
(Inherited from TwoWayAnova)
Protected fieldlrAnova_ The ANOVA for the linear regression.
(Inherited from TwoWayAnova)
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.
(Inherited from TwoWayAnova)
Protected fieldregressionMatrix_ The regression matrix used to compute the ANOVA.
(Inherited from TwoWayAnova)
Top
Remarks
Multiple linear regression is used to compute the RANOVA values.
See Also