NMath Reference Guide

## Two |

Class TwoWayRanovaTwo performs a balanced two-way analysis of variance with
repeated measures on both factors.

Inheritance Hierarchy

SystemObject

CenterSpace.NMath.CoreTwoWayAnovaBase

CenterSpace.NMath.CoreTwoWayAnova

CenterSpace.NMath.CoreTwoWayRanovaTwo

CenterSpace.NMath.CoreTwoWayAnovaBase

CenterSpace.NMath.CoreTwoWayAnova

CenterSpace.NMath.CoreTwoWayRanovaTwo

Syntax

The TwoWayRanovaTwo type exposes the following members.

Constructors

Name | Description | |
---|---|---|

TwoWayRanovaTwo | No argument contructor. Used primarily for serialization. | |

TwoWayRanovaTwo(DataFrame, Int32, Int32, Int32) | Constructs a TwoWayRanova instance, with repeated measures on both factors, from the given data frame. |

Properties

Name | Description | |
---|---|---|

AnovaTable |
Gets a traditional two-way ANOVA table.
(Inherited from TwoWayAnova) | |

GrandMean |
Gets the grand mean.
(Inherited from TwoWayAnova) | |

RanovaTable | Gets a traditional two-way RANOVA table. | |

RegressionFactorParameters |
Gets the array of estimates for the linear regression parameters corresponding to
the dummy variables for the different factor levels.
(Inherited from TwoWayAnova) | |

RegressionInteractionParameters |
Gets the array of estimates for the linear regression parameters corresponding
to the dummy variables for the interactions.
(Inherited from TwoWayAnova) | |

RegressionInterceptParameter |
Gets the intercept parameter from the linear regression that was used to
compute the ANOVA.
(Inherited from TwoWayAnova) | |

RegressionSubjectParameters | Gets the array of estimates for the linear regression parameters corresponding to the dummy variables for the interaction of the ANOVA factors with the subjects. |

Methods

Name | Description | |
---|---|---|

Clone |
Creates a deep copy of this TwoWayRanovaTwo.
(Overrides TwoWayAnovaClone) | |

ComputeAnova |
Compute the ANOVA for the given data.
(Inherited from TwoWayAnova) | |

ComputeFactorSumsOfSquares |
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) | |

ComputeFactorSumsOfSquares(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) | |

ComputeFactorSumsOfSquares(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) | |

CreateAnovaTable |
Create the RANOVA table for this object.
(Overrides TwoWayAnovaCreateAnovaTable) | |

FillInRegressionMatrix |
Fill in the regression matrix and observation vector that is to be
used for computing the RANOVA.
(Overrides TwoWayAnovaFillInRegressionMatrix(DataFrame, Int32, Int32, Int32)) | |

GetCellData |
Returns all the data in a cell, as defined by the levels of the two factors
in the ANOVA.
(Inherited from TwoWayAnovaBase) | |

GetMeanForCell |
Returns the mean for the specified cell, as defined by the levels of
the two factors in the ANOVA.
(Inherited from TwoWayAnovaBase) | |

GetMeanForFactorLevel |
Returns the mean for the specified factor level.
(Inherited from TwoWayAnovaBase) | |

GetRegressionFactorParameter |
Returns the regression parameter associated with the specified factor level.
(Inherited from TwoWayAnova) | |

GetRegressionFactorParameters |
Fills in the array of AnovaRegressionFactorParam objects.
(Overrides TwoWayAnovaGetRegressionFactorParameters) | |

GetRegressionInteractionParameter |
Returns the regression parameter associated with the specified interaction.
(Inherited from TwoWayAnova) | |

GetRegressionInteractionParameters |
Fill in the array of AnovaRegressionInteractionParam objects.
(Overrides TwoWayAnovaGetRegressionInteractionParameters) | |

InterceptParameterSumOfSquares |
Compte the sum of squares associated with the regression's intercept parameter.
(Inherited from TwoWayAnovaBase) | |

MakeCellData |
Fills in the cell data for a two way ANOVA from the given data frame and
column information.
(Inherited from TwoWayAnovaBase) | |

MakeFactorParameters(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) | |

MakeFactorParameters(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) | |

MakeInteractionParameters(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) | |

MakeInteractionParameters(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) | |

ToString |
Returns a formatted string representation of a traditional two-way analysis
of variance table.
(Inherited from TwoWayAnova) |

Fields

Name | Description | |
---|---|---|

anovaTable_ |
A traditional ANOVA table representation of the results.
(Inherited from TwoWayAnova) | |

cells_ |
The ANOVA data broken up into cells.
(Inherited from TwoWayAnovaBase) | |

factorA_ |
One of the factors in the ANOVA
(Inherited from TwoWayAnovaBase) | |

factorB_ |
The other factor in the ANOVA.
(Inherited from TwoWayAnovaBase) | |

factorParameters_ |
Stats for the regression parameters corresponding to the two factors.
(Inherited from TwoWayAnova) | |

interactionParameters_ |
Stats for the regression parameters corresponding to the interaction
between the two factor.
(Inherited from TwoWayAnova) | |

interceptParameter_ |
Stats for the regression intercept parameter.
(Inherited from TwoWayAnova) | |

lr_ |
The linear regression used to compute the ANOVA
(Inherited from TwoWayAnova) | |

lrAnova_ |
The ANOVA for the linear regression.
(Inherited from TwoWayAnova) | |

observations_ |
The observation vector for the regression used to compute the ANVOA.
(Inherited from TwoWayAnovaBase) | |

parameterSumsOfSquares_ |
The sums of squares for all the parameters in the regression. These are
in the same order as the regression parameters.
(Inherited from TwoWayAnova) | |

regressionMatrix_ |
The regression matrix used to compute the ANOVA.
(Inherited from TwoWayAnova) |

Remarks

Multiple linear regression is used to compute the RANOVA values.

See Also