Predicts outcome from features with stacked model.
# S3 method for class 'starnet'
predict(object, newx, type = "response", nzero = NULL, ...)
starnet object
covariates: numeric matrix with \(n\) rows (samples) and \(p\) columns (variables)
character "link" or "response"
maximum number of non-zero coefficients:
positive integer, or NULL
further arguments (not applicable)
Matrix of predicted values, with samples in the rows,
and models in the columns. Included models are
alpha
(fixed elastic net),
ridge
(i.e. alpha0
),
lasso
(i.e. alpha1
),
tune
(tuned elastic net),
stack
(stacked elastic net),
and none
(intercept-only model).