| RegressionBaseRemovePredictors Method |
Removes the specified predictors from the model, and recalculates the model
parameters.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public void RemovePredictors(
int startIndex,
int numberToRemove
)
Public Sub RemovePredictors (
startIndex As Integer,
numberToRemove As Integer
)
public:
void RemovePredictors(
int startIndex,
int numberToRemove
)
member RemovePredictors :
startIndex : int *
numberToRemove : int -> unit
Parameters
- startIndex Int32
- The first predictor to remove.
- numberToRemove Int32
- The total number of predictors to remove.
Exceptions 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