Represents an Analysis of Variance (ANOVA) model.

Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public MustInherit Class AnovaModel _
	Inherits GeneralLinearModel
C#
public abstract class AnovaModel : GeneralLinearModel
C++
public ref class AnovaModel abstract : public GeneralLinearModel

Methods

IconTypeDescription
Compute()
Computes the model.
ComputeModel()
Implemented by inheritors to perform the model calculations.
Contains(GeneralLinearModel)
Returns a value that indicates whether another GeneralLinearModel is nested within this instance.
Equals(Object)
Determines whether the specified Object is equal to the current Object.
Finalize()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
GetFactor(Int32)
Gets the factor corresponding to the variable with the specified index.
GetFactor(String)
Gets the factor corresponding to the variable with the specified name.
GetHashCode()
Serves as a hash function for a particular type.
GetHomogeneityOfVariancesTest()
Returns a test to verify that the cells have the same variance.
GetHomogeneityOfVariancesTest(TestOfHomogeneityOfVariances)
Returns a test to verify that the cells have the same variance.
GetType()
Gets the Type of the current instance.
MemberwiseClone()
Creates a shallow copy of the current Object.
ResetComputation()
Clears all computed model parameters.
SetAnovaModelRow(Int32, String, Double, Double)
Sets the data of a row in the model's AnovaTable.
SetAnovaRow(AnovaRowType, String, Double, Double)
Sets the data of a row in the model's AnovaTable.
ToString()
Returns a string representation of this instance.

Constructors

IconTypeDescription
AnovaModelNew(Int32, DataTable, String, String[]())
Constructs a new AnovaModel objects.
AnovaModelNew(VariableCollection, String, String[]())
Constructs a new AnovaModel objects.
AnovaModelNew(NumericalVariable, Variable[]())
Constructs a new AnovaModel objects.

Properties

IconTypeDescription
AdjustedRSquared
Gets the adjusted R Squared value for the regression.
AnovaTable
Gets the AnovaTable that summarizes the results of this model.
Cells
Gets the collection of data cells for this model.
Computed
Gets a value that indicates whether the regression model has been computed.
DegreesOfFreedom
Gets the total degrees of freedom of the data.
DependentVariables
Gets the collection of dependent variables associated with this model.
FStatistic
Gets the F statistic for the regression.
IndependentVariables
Gets the collection of independent variables associated with this model.
IsBalanced
Gets a value that indicates whether this ANOVA design is balanced.
Parameters
Gets the collection of parameters associated with this model.
PValue
Gets the probability corresponding to the F statistic for the regression.
ResidualSumOfSquares
Gets the sum of squares of the residuals of the model.
RSquared
Gets the R Squared value for the regression.
StandardError
Gets the standard error of the regression.

Remarks

The AnovaModel class is an abstract base class for all classes that implement Analysis of Variance (ANOVA) models. It inherits from GeneralLinearModel, and defines a number of additional properties and methods useful in analysis of variance.

ANOVA models are a specialized form of GeneralLinearModel whose independent variables or predictors are all categorical in nature. The categorical scales are called factors. Use the GetFactor(Int32) method to get the factor that corresponds to a specific independent variable.

The Cells property returns a CellArray object that represents the data organized into cells. There is one cell for every combination of factor levels. The IsBalanced property indicates whether all cells have the same number of observations.

One of the assumptions in analysis of variance is that the variances of the data in each cell are the same. The GetHomogeneityOfVariancesTest() returns a hypothesis test object that allows you to verify this assumption.

This is an abstract base class, and cannot be instantiated directly. Instead, use one of the derived classes listed in the following table. ClassDescriptionOneWayAnovaModelRepresents a one-way analysis of variance model.OneWayRAnovaModelRepresents a one-way analysis of variance model with repeated measures.TwoWayAnovaModelRepresents a two-way analysis of variance.

Inheritance Hierarchy

System.Object
  Extreme.Statistics.GeneralLinearModel
    Extreme.Statistics.AnovaModel