Implements stacked elastic net regression.
starnet(
y,
X,
family = "gaussian",
nalpha = 21,
alpha = NULL,
nfolds = 10,
foldid = NULL,
type.measure = "deviance",
alpha.meta = 1,
penalty.factor = NULL,
intercept = NULL,
upper.limit = NULL,
unit.sum = NULL,
...
)
response: numeric vector of length \(n\)
covariates: numeric matrix with \(n\) rows (samples) and \(p\) columns (variables)
character "gaussian", "binomial" or "poisson"
number of alpha
values
elastic net mixing parameters:
vector of length nalpha
with entries
between \(0\) (ridge) and \(1\) (lasso);
or NULL
(equidistance)
number of folds
fold identifiers:
vector of length \(n\) with entries between \(1\) and nfolds
;
or NULL
(balance)
loss function:
character "deviance", "class", "mse" or "mae"
(see cv.glmnet
)
meta-learner:
value between \(0\) (ridge) and \(1\) (lasso)
for elastic net regularisation;
NA
for convex combination
differential shrinkage:
vector of length \(n\) with entries
between \(0\) (include) and \(Inf\) (exclude),
or NULL
(all \(1\))
settings for meta-learner: logical,
or NULL
(intercept=!is.na(alpha.meta)
,
upper.limit=TRUE
,
unit.sum=is.na(alpha.meta)
)
further arguments passed to glmnet
Object of class starnet
.
The slots base
and meta
contain cv.glmnet
-like objects,
for the base and meta learners, respectively.
Armin Rauschenberger, Enrico Glaab, and Mark A. van de Wiel (2021). "Predictive and interpretable models via the stacked elastic net". Bioinformatics 37(14):2012-2016. doi:10.1093/bioinformatics/btaa535 . (Click here to access PDF.)