Click or drag to resize

RegressionBaseRemovePredictor Method

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

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public void RemovePredictor(
	int i
)

Parameters

i  Int32
The index of the predictor to remove.
Exceptions
ExceptionCondition
IndexOutOfRangeExceptionThrown if the specified index 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.
See Also