StepwiseRegression Class |
Namespace: Imsl.Stat
The StepwiseRegression type exposes the following members.
Name | Description | |
---|---|---|
StepwiseRegression(Double, Double) |
Creates a new instance of StepwiseRegression.
| |
StepwiseRegression(Double, Int32) |
Creates a new instance of StepwiseRegression from a
user-supplied variance-covariance matrix.
| |
StepwiseRegression(Double, Double, Double) |
Creates a new instance of weighted StepwiseRegression.
| |
StepwiseRegression(Double, Double, Double, Double) |
Creates a new instance of weighted StepwiseRegression using
observation frequencies.
|
Name | Description | |
---|---|---|
Compute |
Builds the multiple linear regression models using forward selection,
backward selection, or stepwise selection.
| |
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.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SetMeans |
Sets the means of the variables.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
ANOVA |
An analysis of variance table and related statistics.
| |
CoefficientTTests |
The student-t test statistics for the regression
coefficients.
| |
CoefficientVIF |
The variance inflation factors for the final model in this
invocation.
| |
CovariancesSwept |
Results after cov has been swept for the columns
corresponding to the variables in the model.
| |
Force |
Forces independent variables into the model based on their level
assigned from Levels.
| |
History |
The stepwise regression history for the independent variables.
| |
Intercept |
Returns the intercept.
| |
Levels |
The levels of priority for variables entering and leaving the
regression.
| |
Method |
Specifies the stepwise selection method, forward, backward, or
stepwise Regression.
| |
PValueIn |
Defines the largest p-value for variables entering the model.
| |
PValueOut |
Defines the smallest p-value for removing variables.
| |
Swept |
An array containing information indicating whether or not a
particular variable is in the model.
| |
Tolerance |
The tolerance used to detect linear dependence among the independent
variables.
|
Class StepwiseRegression builds a multiple linear regression model using forward selection, backward selection, or forward stepwise (with a backward glance) selection.
Levels of priority can be assigned to the candidate independent variables using Levels. All variables with a priority level of 1 must enter the model before variables with a priority level of 2. Similarly, variables with a level of 2 must enter before variables with a level of 3, etc. Variables also can be forced into the model using Force. Note that specifying "force" without also specifying levels of priority will result in all variables being forced into the model.
Typically, the intercept is forced into all models and is not a candidate variable. In this case, a sum-of-squares and crossproducts matrix for the independent and dependent variables corrected for the mean is required. Other possibilities are as follows:
The stepwise regression algorithm is due to Efroymson (1960). StepwiseRegression uses sweeps of the covariance matrix (input in cov, if the covariance matrix is specified, or generated internally) to move variables in and out of the model (Hemmerle 1967, Chapter 3). The SWEEP operator discussed in Goodnight (1979) is used. A description of the stepwise algorithm is also given by Kennedy and Gentle (1980, pp. 335-340). The advantage of stepwise model building over all possible regression (SelectionRegression) is that it is less demanding computationally when the number of candidate independent variables is very large. However, there is no guarantee that the model selected will be the best model (highest ) for any subset size of independent variables.