NMath Reference Guide

## Two |

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

CenterSpace.NMath.CoreTwoWayAnovaBase

CenterSpace.NMath.CoreTwoWayAnova

CenterSpace.NMath.CoreTwoWayRanova

Syntax

The TwoWayRanova type exposes the following members.

Constructors

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

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

TwoWayRanova(DataFrame, Int32, Int32, Int32) | Constructs a TwoWayRanova instance, with repeated measures on one factor, 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 different subjects. |

Methods

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

Clone |
Creates a deep copy of this TwoWayRanova.
(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 ANOVA table for this object.
(Overrides TwoWayAnovaCreateAnovaTable) | |

FillInRegressionMatrix |
Fills in the regression matrix and observation vector used in computing the ANOVA.
(Overrides TwoWayAnovaFillInRegressionMatrix(DataFrame, Int32, Int32, Int32)) | |

FillInSubjectMatrix | 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. | |

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