mv_sis | R Documentation |
Implement the feature screening for the classification problem via MV index.
mv_sis(X, y, d = NULL, parallel = FALSE)
X |
Data of multivariate covariates, which should be an
|
y |
Data of categorical response, which should be a factor of length
|
d |
An integer specifying how many features should be kept after
screening. Defaults to |
parallel |
A boolean indicating whether to calculate parallelly via
|
A list of the objects about the implemented feature screening:
measurement
: sample MV index calculated for each single covariate;
selected
: indicies or names (if avaiable as colnames of X
) of
covariates that are selected after feature screening;
ordering
: order of the calculated measurements of each single covariate.
The first one is the largest, and the last is the smallest.
X <- mtcars[, c("mpg", "disp", "hp", "drat", "wt", "qsec")]
y <- factor(mtcars[, "am"])
mv_sis(X, y, d = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.