Description Usage Arguments Value Examples
Score the importance of covariates to predict an output by combining LARS
sparse regression with stability selection. Given a matrix of covariates and
a vector or outputs to predict, stability selection works by solving
repeatedly a sparse regression problem (here we use the LARS method) on a
randomly modified covariate matrix (here we subsample the rows and randomly
reweight the columns). The stability selection (SS) score then evaluates the
importance of each covariates based on how often it is selected. We implement
two SS scores, the original one of Meinshausen and Buhlmann which measure of
frequency of selection among the top L
L covariates, and the area score
of Haury and Vert which combines the frequency of selection among the top
L
covariates for different values of L
.
1 2 | stabilityselection(x, y, nsplit = 100, nstepsLARS = 20, alpha = 0.2,
scoring = "area")
|
x |
The input matrix, each row is a sample, each column a feature. |
y |
A vector of response variable. |
nsplit |
The number of splits of the samples into two subsamples
(default |
nstepsLARS |
The maximum number of LARS steps performed at each
iteration (default |
alpha |
The random multiplicative weights of each column are uniformly
sampled in the interval [ |
scoring |
How to score a feature. If |
A matrix of SS scores. Each column corresponds to a covariate. Each row corresponds to a number of LARS steps.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.