Regression Model<T> Class
Represents a statistical model.
Definition
Namespace: Numerics.NET.DataAnalysis.Models
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
public abstract class RegressionModel<T> : Model
- Derived
Type Parameters
- T
Remarks
This is an abstract base class and cannot be instantiated directly. Instead, use one of the inherited types, as listed in the table below:
Class | Description |
---|---|
Simple | A simple linear regression model with one independent variable. |
Linear | A regression model with multiple independent variables. |
Polynomial | A linear regression model that uses a polynomial in one variable. |
Generalized | A multiple linear regression model with multiple independent variables. |
Nonlinear | A multiple linear regression model with multiple independent variables. |
Note to inheritors: When you inherit from RegressionModel<T>,you must override FitCore(ModelInput, ParallelOptions).
Constructors
Regression | Constructs a new univariate model based on a model specification. |
Properties
Adjusted | Gets the adjusted R Squared value for the regression. |
Anova | Gets the AnovaTable that summarizes the results of this model. |
Base |
Gets an index containing the keys of the columns
that are required inputs to the model.
(Inherited from Model) |
Computed |
Gets whether the model has been computed.
(Inherited from Model) Obsolete. |
Covariance | Gets the covariance matrix of the model parameters. |
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. |
Dependent | Gets a vector that contains the dependent variable that is to be fitted. |
Fitted |
Gets whether the model has been computed.
(Inherited from Model) |
FStatistic | Gets the F statistic for the regression. |
Independent | Gets a matrix whose columns contain the independent variables in the model. |
Input |
Gets the schema for the features used for fitting the model.
(Inherited from Model) |
Log | Gets the log-likelihood that the model generated the data. |
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) |
Parallel |
Gets or sets an object that specifies how the calculation of the model should be parallelized.
(Inherited from Model) |
Parameters | Gets the collection of parameters associated with this model. |
Parameter | Gets the values of the parameters associated with this model. |
Predictions | Gets a vector containing the model's predicted values for the dependent variable. |
PValue | Gets the probability corresponding to the F statistic for the regression. |
Residuals | Gets a vector containing the residuals of the model. |
Residual | Gets the sum of squares of the residuals of the model. |
RSquared | Gets the R Squared value for the regression. |
Standard | Gets the standard error of the regression. |
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) |
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. |
Contains | Returns whether another RegressionModel<T> is nested within this instance. |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Finalize | Allows 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( |
Fits the model to the data.
(Inherited from Model) |
Fit |
Computes the model to the specified input
using the specified parallelization options.
(Inherited from Model) |
Get | Returns the Akaike information criterion (AIC) value for the model. |
Get | Returns the Bayesian information criterion (BIC) value for the model. |
Get | Serves as the default hash function. (Inherited from Object) |
Get | Gets the Type of the current instance. (Inherited from Object) |
Memberwise | Creates a shallow copy of the current Object. (Inherited from Object) |
Predict( | Predicts the value of the output corresponding to the specified features. |
Predict( | Predicts the value of the output corresponding to the specified features. |
Predict( | Predicts the value of the output corresponding to the specified features. |
Predict | Predicts the value of the dependent variable based on the specified values of the features. |
Predict | Predicts the value of the dependent variable based on the specified values of the features. |
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.
(Overrides Model.Summarize(SummaryOptions)) |
ToString | Returns a string that represents the current object. (Inherited from Model) |