TwoWayAnovaModel Class

Represents a two-way within-subjects Analysis of Variance (ANOVA) model.

Definition

Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public class TwoWayAnovaModel : AnovaModel
Inheritance
Object  →  Model  →  AnovaModel  →  TwoWayAnovaModel

Remarks

Use the TwoWayAnovaModel to represent an analysis of variance model with two factors. The observation variable and factor variables must be specified in the constructor. The dependent variable must be numerical. The factor variables must be categorical.

OneWayAnovaModel inherits from AnovaModel, which in turn inherits from AnovaModel. All methods and properties of these classes are available.

Before you can access the results of the analysis, you must call the Fit() method.

The results of the analysis are available through properties of the model object, including FStatistic and PValue. They are summarized in the AnovaTable.

The Cells property returns a Cell matrix that represents the data organized into cells. There is one cell for every combination of factor levels. Cell means and other properties of the model can be accessed through the properties of individual cells.

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.

Constructors

TwoWayAnovaModel(IDataFrame, String) Constructs a new TwoWayAnovaModel object for the specified data..
TwoWayAnovaModel(Vector<Double>, ICategoricalVector, ICategoricalVector) Constructs a new TwoWayAnovaModel object for the specified data..
TwoWayAnovaModel(IDataFrame, String, String, String) Constructs a new TwoWayAnovaModel object for the specified data..

Properties

AdjustedRSquared Gets the adjusted R Squared value for the regression.
(Inherited from AnovaModel)
AnovaTable Gets the AnovaTable that summarizes the results of this model.
(Inherited from AnovaModel)
BaseFeatureIndex Gets an index containing the keys of the columns that are required inputs to the model.
(Inherited from Model)
Cells Gets the collection of data cells for this model.
ColumnFactor Gets the factor corresponding to the independent variable.
ColumnTotals Gets the cells containing summary data for each column.
CompleteModelRow Gets the row in the ANOVA table corresponding to the complete model.
Computed Gets whether the model has been computed.
(Inherited from Model)
Obsolete.
CovarianceMatrix Gets the covariance matrix of the model parameters.
(Inherited from AnovaModel)
Data Gets an object that contains all the data used as input to the model.
(Inherited from Model)
DegreesOfFreedom Gets the total degrees of freedom of the data.
(Inherited from AnovaModel)
DependentVariable Gets or sets the dependent variable in the ANOVA model.
(Inherited from AnovaModel)
FirstFactorRow Gets the row in the ANOVA table corresponding to the first factor.
Fitted Gets whether the model has been computed.
(Inherited from Model)
FStatistic Gets the F statistic for the regression.
(Inherited from AnovaModel)
Grouping Gets the grouping object that maps observations to their cell.
(Overrides AnovaModel.Grouping)
InputSchema Gets the schema for the features used for fitting the model.
(Inherited from Model)
InteractionRow Gets the row in the ANOVA table corresponding to the interaction between the two factors.
IsBalanced Gets whether all the cells in the ANOVA design have the same number of observations.
(Overrides AnovaModel.IsBalanced)
LogLikelihood Gets the log-likelihood that the model generated the data.
(Inherited from AnovaModel)
MaxDegreeOfParallelism Gets or sets the maximum degree of parallelism enabled by this instance.
(Inherited from Model)
ModelSchema Gets the collection of variables used in the model.
(Inherited from Model)
NumberOfObservations Gets the number of observations the model is based on.
(Inherited from Model)
ObservationsPerCell Gets the number of observations per cell.
(Overrides AnovaModel.ObservationsPerCell)
ParallelOptions Gets or sets an object that specifies how the calculation of the model should be parallelized.
(Inherited from Model)
Parameters Gets a vector containing the estimated values of the model parameters.
(Inherited from AnovaModel)
PValue Gets the probability corresponding to the F statistic for the regression.
(Inherited from AnovaModel)
RowFactor Gets the factor corresponding to the independent variable.
RowTotals Gets the cells containing summary data for each row.
RSquared Gets the R Squared value for the regression.
(Inherited from AnovaModel)
SecondFactorRow Gets the row in the ANOVA table corresponding to the second factor.
StandardError Gets the standard error of the regression.
(Inherited from AnovaModel)
Status Gets the status of the model, which determines which information is available.
(Inherited from Model)
SumsOfSquaresType Gets the type of sum of squares to return in the ANOVA table.
SupportsWeights Indicates whether the model supports case weights.
(Inherited from Model)
TotalCell Gets a cell containing summary statistics for all the data in the model.
TypeIIISumsOfSquares Gets an ANOVA table using Type III sums of squares.
TypeIISumsOfSquares Gets an ANOVA table using Type II sums of squares.
TypeISumsOfSquares Gets an ANOVA table using Type I sums of squares.
Weights Gets or sets the actual weights.
(Inherited from Model)

Methods

Compute() Computes the model.
(Inherited from Model)
Obsolete.
Compute(ParallelOptions) Computes the model.
(Inherited from Model)
Obsolete.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Fit() Fits the model to the data.
(Inherited from Model)
Fit(ParallelOptions) Fits the model to the data.
(Inherited from Model)
FitCore Computes the model.
(Overrides Model.FitCore(ModelInput, ParallelOptions))
GetAkaikeInformationCriterion Returns the Akaike information criterion (AIC) value for the model.
(Inherited from AnovaModel)
GetBartlettTest Returns Bartlett's test to verify that the cells have the same variance.
(Inherited from AnovaModel)
GetBayesianInformationCriterion Returns the Bayesian information criterion (BIC) value for the model.
(Inherited from AnovaModel)
GetFactor(Int32) Gets the factor corresponding to the variable with the specified index.
(Inherited from AnovaModel)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetHomogeneityOfVariancesTest() Returns a test to verify that the cells have the same variance.
(Inherited from AnovaModel)
GetHomogeneityOfVariancesTest(TestOfHomogeneityOfVariances) Returns a test to verify that the cells have the same variance.
(Inherited from AnovaModel)
GetLeveneTest Returns Levene's test to verify that the cells have the same variance.
(Inherited from AnovaModel)
GetTukeyTestOfAdditivity Returns Tukey's test for additivity applied to the model.
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ResetComputation Clears all fitted model parameters.
(Inherited from Model)
Obsolete.
ResetFit Clears all fitted model parameters.
(Inherited from Model)
SetDataSource Uses the specified data frame as the source for all input variables.
(Inherited from Model)
Summarize() Returns a string containing a human-readable summary of the object using default options.
(Inherited from Model)
Summarize(SummaryOptions) Returns a string containing a human-readable summary of the object using the specified options.
(Inherited from AnovaModel)
ToString Returns a string representation of this instance.
(Inherited from AnovaModel)

See Also