NMath Reference Guide

## Two |

Class for performing a Type III ANOVA on unbalanced data. See the description
of the base class TwoWayAnovaUnbalanced for a description of
the notation.
SS(A | B, AB) for factor A.
SS(B | A, AB) for factor B.
SS(AB | A, B) for interaction.
This type tests for the presence of a main effect after the other main effect and
interaction. This approach is therefore valid in the presence of significant interactions.
However, it is often not interesting to interpret a main effect if interactions are
present (generally speaking, if a significant interaction is present, the main effects
should not be further analysed).

Inheritance Hierarchy

SystemObject

CenterSpace.NMath.CoreTwoWayAnovaBase

CenterSpace.NMath.CoreTwoWayAnovaUnbalanced

CenterSpace.NMath.CoreTwoWayAnovaTypeIII

CenterSpace.NMath.CoreTwoWayAnovaBase

CenterSpace.NMath.CoreTwoWayAnovaUnbalanced

CenterSpace.NMath.CoreTwoWayAnovaTypeIII

Syntax

The TwoWayAnovaTypeIII type exposes the following members.

Constructors

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

TwoWayAnovaTypeIII | Constructs a TwoWayAnovaTypeIII instance from data in the given data frame. |

Properties

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

AnovaTable |
Gets the ANOVA table.
(Inherited from TwoWayAnovaUnbalanced) | |

FactorARegressionFactorParameters |
Gets the ANOVAs for the factor A regression parameters.
(Inherited from TwoWayAnovaUnbalanced) | |

FactorBRegressionFactorParameters |
Gets the ANOVAs for the factor B regression parameters.
(Inherited from TwoWayAnovaUnbalanced) | |

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

InteractionRegressionFactorParameters |
Gets the ANOVAs for the interaction regression parameters.
(Inherited from TwoWayAnovaUnbalanced) | |

RegressionInterceptParameter |
Bets the ANOVA regression parameter object associated with the
intercept parameter.
(Inherited from TwoWayAnovaUnbalanced) |

Methods

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

ComputeBalancedAnova |
Computes the ANOVA in the case that the design is acutally balanced.
This can greatly increase performance if an unbalanced ANOVA class is
used to perform an ANOVA on a data set that is in fact balanced (same
number of observations in each cell).
(Inherited from TwoWayAnovaUnbalanced) | |

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(DoubleMatrix, TwoWayAnovaUnbalancedParameterOrder, TwoWayAnovaUnbalancedParameterSlices) |
Compute the factor sums of squares.
(Inherited from TwoWayAnovaUnbalanced) | |

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

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

GetFactorSumOfSquares |
For a given parameter order, retrives the sum of squares for the regression
parameters associated with the last factor, or interaction, in the order.
(Inherited from TwoWayAnovaUnbalanced) | |

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

GetOrderedRegression |
Create the ordered linear regession object for the data and given coefficient
ordering.
(Inherited from TwoWayAnovaUnbalanced) | |

GetParameterSlices |
For a give ANOVA regression factor/interaction parameter order,
computes the slices to access the columns of the regression matrix
for the factor and interaction parameters.
(Inherited from TwoWayAnovaUnbalanced) | |

IncrementalSumOfSquares(LinearRegression, Int32, DoubleVector, Double) | (Inherited from TwoWayAnovaUnbalanced) | |

IncrementalSumOfSquares(DoubleMatrix, Int32, DoubleVector, Double, Factor, AnovaRegressionFactorParam) |
Computes the incremental sum of squares when adding numParameters
to the regression model. The columns corresponding these parameters are
assumed to be the last numParameter columns in the given regression
matrix.
(Inherited from TwoWayAnovaUnbalanced) | |

InitializeFactorsAndCellData |
Consumes the ANOVA data from a DataFrame.
(Inherited from TwoWayAnovaUnbalanced) | |

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

MakeFactorParameters(Factor, DoubleVector, LinearRegression, Int32, 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 TwoWayAnovaUnbalanced) | |

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

ReorderRegressionMatrix |
For a give parameter order reorders the columns of the input regression matrix so that the
the columns corresponding to the parameters are in the order specified by the parameter order.
(Inherited from TwoWayAnovaUnbalanced) |

Fields

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

anovaTable_ |
The ANOVA table.
(Inherited from TwoWayAnovaUnbalanced) | |

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

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

factorAparams_ |
Anovas for the factor A regression parameters.
(Inherited from TwoWayAnovaUnbalanced) | |

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

factorBparams_ |
Anovas for the factor B regression parameters.
(Inherited from TwoWayAnovaUnbalanced) | |

grandMean_ |
The mean of all the data.
(Inherited from TwoWayAnovaUnbalanced) | |

interactionParams_ |
Anovas for the interaction regression parameters.
(Inherited from TwoWayAnovaUnbalanced) | |

interceptParameter_ |
Intercept parameter values for the ANOVA regression.
(Inherited from TwoWayAnovaUnbalanced) | |

numFactorAparams_ |
Number of regression parameters for factor A.
(Inherited from TwoWayAnovaUnbalanced) | |

numFactorBparams_ |
Number of regression parameters for factor B.
(Inherited from TwoWayAnovaUnbalanced) | |

numInteractionParams_ |
Number of interaction regression parameters.
(Inherited from TwoWayAnovaUnbalanced) | |

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

See Also