Removes the specified predictor from the model, and recalculates the model parameters.

Namespace:  CenterSpace.NMath.Stats
Assembly:  NMathStats (in NMathStats.dll) Version: 3.4.0.0

Syntax

C#
public void RemovePredictor(
	int i
)
Visual Basic (Declaration)
Public Sub RemovePredictor ( _
	i As Integer _
)
Visual C++
public:
void RemovePredictor(
	int i
)

Parameters

i
Type: System..::.Int32
The index of the predictor to remove.

Remarks

Indexing starts at 0. If the model has an intercept parameter, removing the 0th predictor will not remove the intercept parameter. Instead, use the RemoveInterceptParameter() method to remove the intercept parameter.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.IndexOutOfRangeExceptionThrown if the specified index is invalid.

See Also