filter.predictors | R Documentation |
Filter the predictors, retaining only the top n
.
filter.predictors(x, y, n, ignore = NULL)
x |
Design matrix. |
y |
Outcome variable. |
n |
Number of variables to retain. |
ignore |
Names of variables that should be ignored by the filter. |
This performs a univariate test of association of each predictor (not listed
in ignore
) with the outcome, and retains the top n
variables
with smallest p-value according to a Kolmogorov-Smirnov test.
An array of indices of variables that are retained by the filter.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.