Click or drag to resize

StepwiseLS Class

Implementation of Stepwise Least Squares (Regrssion) Algorithm.
Inheritance Hierarchy
SystemObject
  FinMath.LeastSquaresAbstractLS
    FinMath.LeastSquaresStepwiseLS

Namespace:  FinMath.LeastSquares
Assembly:  FinMath (in FinMath.dll) Version: 2.4.7-0a995bd0ea1854c2c868ec3f8dae606c5777e170
Syntax
C#
[SerializableAttribute]
public class StepwiseLS : AbstractLS

The StepwiseLS type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyInModel
Returns boolean array. I-th element of array is true if and only if i-th regressor was added into model.
Public propertyInModelIndices
Indices of regressors which were added into model.
Public propertyInterceptTerm
Intercept Term parameter.
Public propertyIterationsDone
Number of iterations completed.
Public propertyMinimalVariance
Represents minimal regressand variance which must be covered by regressor to be in model.
Public propertyParameters
Vector of regression parameters.
(Inherited from AbstractLS.)
Public propertyPValue
Pvalue scores for regressors.
Public propertyStatus
Method Status.
(Inherited from AbstractLS.)
Public propertyStepwiseParameters
Stepwise regression _parameters. For in-model regressors paramters will be regression _parameters. The StepwiseParameters value for a term not included in the final model is the coefficient estimate that would result from adding the term to the model.
Public propertyTStatistics
Returns vector of test statistic for each regressor.
Top
Methods
  NameDescription
Public methodCalculateR2(Matrix, Vector)
Calculate R2 - Coefficient of determination - goodness-of-fit of the OLS regression metric. Method use computed regression parameters. http://en.wikipedia.org/wiki/Coefficient_of_determination
(Inherited from AbstractLS.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodEstimate(Matrix)
Estimate regresand values, using computed regression _parameters and regressors values. Use this this method for multiple observations.
(Overrides AbstractLSEstimate(Matrix).)
Public methodEstimate(Vector)
Estimate regresand value, using computed regression _parameters and regressors value. Use this this method for single observation.
(Overrides AbstractLSEstimate(Vector).)
Public methodEstimateResidual
Calculate residuals of estimations, using computed regression _parameters, regressors and regressand value. Use this this method for single observation.
(Overrides AbstractLSEstimateResidual(Vector, Double).)
Public methodEstimateResiduals
Calculate residuals of estimations, using computed regression _parameters, regressors and regressand values. Use this this method for multiple observations.
(Overrides AbstractLSEstimateResiduals(Matrix, Vector).)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also