One Way Anova Model Class
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
public sealed class OneWayAnovaModel : AnovaModel
- Inheritance
- Object → Model → AnovaModel → OneWayAnovaModel
Remarks
Use the OneWayAnovaModel to represent an analysis of variance model with one factor. The dependent variable and factor variable must be specified in the constructor. The dependent variable must be numerical. The factor variable 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 vector of Cell objects 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
One | Constructs a new OneWayAnovaModel object for the specified data.. |
One | Constructs a new OneWayAnovaModel object for the specified data.. |
One | Constructs a new OneWayAnovaModel object for the specified data.. |
Properties
Adjusted |
Gets the adjusted R Squared value for the regression.
(Inherited from AnovaModel) |
Anova |
Gets the AnovaTable that summarizes the results of this model.
(Inherited from AnovaModel) |
Base |
Gets an index containing the keys of the columns
that are required inputs to the model.
(Inherited from Model) |
Between | Gets the AnovaModelRow containing the 'between groups' results. |
Cells | Gets the collection of data cells for this model. |
Computed |
Gets whether the model has been computed.
(Inherited from Model) Obsolete. |
Covariance |
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) |
Degrees |
Gets the total degrees of freedom of the data.
(Inherited from AnovaModel) |
Dependent |
Gets or sets the dependent variable in the ANOVA model.
(Inherited from AnovaModel) |
Factor | Gets the factor corresponding to the independent variable. |
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) |
Input |
Gets the schema for the features used for fitting the model.
(Inherited from Model) |
IsBalanced |
Gets whether all the cells in the ANOVA design have the
same number of observations.
(Overrides AnovaModel.IsBalanced) |
Log |
Gets the log-likelihood that the model generated the data.
(Inherited from AnovaModel) |
Max |
Gets or sets the maximum degree of parallelism enabled by this instance.
(Inherited from Model) |
Model |
Gets the collection of variables used in the model.
(Inherited from Model) |
Number |
Gets the number of observations the model is based on.
(Inherited from Model) |
Observations |
Gets the number of observations per cell.
(Overrides AnovaModel.ObservationsPerCell) |
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) |
RSquared |
Gets the R Squared value for the regression.
(Inherited from AnovaModel) |
Standard |
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) |
Supports |
Indicates whether the model supports case weights.
(Inherited from Model) |
Total | Gets a cell containing summary statistics for all the data in the model. |
Weights |
Gets or sets the actual weights.
(Inherited from Model) |
Methods
Compute() |
Computes the model.
(Inherited from Model) Obsolete. |
Compute( |
Computes the model.
(Inherited from Model) Obsolete. |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Fit() |
Fits the model to the data.
(Inherited from Model) |
Fit( |
Fits the model to the data.
(Inherited from Model) |
Get |
Returns the Akaike information criterion (AIC) value for the model.
(Inherited from AnovaModel) |
Get |
Returns Bartlett's test to verify that the cells have the same variance.
(Inherited from AnovaModel) |
Get |
Returns the Bayesian information criterion (BIC) value for the model.
(Inherited from AnovaModel) |
Get | Gets an estimate for the specified contrast. |
Get | Gets an estimate for the difference between the groups with the specified indexes. |
Get |
Gets the factor corresponding to the variable with the specified index.
(Inherited from AnovaModel) |
Get | Returns the Fisher-Hayter test for the pairwise comparison of two group means. |
Get | Serves as the default hash function. (Inherited from Object) |
Get |
Returns a test to verify that the cells have the same variance.
(Inherited from AnovaModel) |
Get |
Returns a test to verify that the cells have the same variance.
(Inherited from AnovaModel) |
Get |
Returns Levene's test to verify that the cells have the same variance.
(Inherited from AnovaModel) |
Get | Returns Scheffé's test for the pairwise comparison of two group means. |
Get | Returns the Tukey-Kramer test for the pairwise comparison of two group means. |
Get | Returns Tukey's HSD test for the pairwise comparison of two group means. |
Get | Gets the Type of the current instance. (Inherited from Object) |
Reset |
Clears all fitted model parameters.
(Inherited from Model) Obsolete. |
Reset |
Clears all fitted model parameters.
(Inherited from Model) |
Set |
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( |
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) |