Click or drag to resize

RegressionBaseRemovePredictors Method

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

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public void RemovePredictors(
	int startIndex,
	int numberToRemove
)

Parameters

startIndex  Int32
The first predictor to remove.
numberToRemove  Int32
The total number of predictors to remove.
Exceptions
ExceptionCondition
IndexOutOfRangeExceptionThrown if the specified index range is invalid.
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.
Example
If startIndex = 1 and numberToRemove = 3, then the second, third, and fourth predictors are removed.
See Also