idx = fsrftest(X, y)
[idx, scores] = fsrftest(X, y)
[idx, scores] = fsrftest(X, y, Name, Value)
fsrftest ranks predictors by applying an independent regression F-test to each column of X.
Supported name-value options are CategoricalPredictors, NumBins, UseMissing, and Weights. idx contains predictor indices ordered by decreasing score. scores contains one score per predictor.
X = [1 0 3; 2 1 2; 3 0 1; 4 1 2; 5 0 3; 6 1 4];
y = [1; 2; 2; 4; 4; 7];
[idx, scores] = fsrftest(X, y, 'NumBins', 2)
| Version | Description |
|---|---|
| 2.0.0 | initial version |