Compares univariate and multivariate regression.
cv.joinet(
Y,
X,
family = "gaussian",
nfolds.ext = 5,
nfolds.int = 10,
foldid.ext = NULL,
foldid.int = NULL,
type.measure = "deviance",
alpha.base = 1,
alpha.meta = 1,
compare = FALSE,
mice = FALSE,
cvpred = FALSE,
times = FALSE,
...
)This function returns a matrix with \(q\) columns,
including the cross-validated loss from the univariate models
(base), the multivariate models (meta),
and the intercept-only models (none).
outputs: numeric matrix with \(n\) rows (samples) and \(q\) columns (outputs)
inputs: numeric matrix with \(n\) rows (samples) and \(p\) columns (inputs)
distribution:
vector of length \(1\) or \(q\) with entries
"gaussian", "binomial" or "poisson"
number of external folds
number of internal folds
external fold identifiers:
vector of length \(n\) with entries
between \(1\) and nfolds.ext;
or NULL
internal fold identifiers:
vector of length \(n\) with entries
between \(1\) and nfolds.int;
or NULL
loss function:
vector of length \(1\) or \(q\) with entries
"deviance", "class", "mse" or "mae"
(see cv.glmnet)
elastic net mixing parameter for base learners: numeric between \(0\) (ridge) and \(1\) (lasso)
elastic net mixing parameter for meta learners: numeric between \(0\) (ridge) and \(1\) (lasso)
experimental arguments:
character vector with entries "mnorm", "spls", "mrce",
"sier", "mtps", "rmtl", "gpm" and others
(requires packages spls, MRCE, SiER, MTPS, RMTL or GPM)
missing data imputation:
logical (mice=TRUE requires package mice)
return cross-validated predictions: logical
measure computation time: logical
further arguments passed to glmnet
and cv.glmnet