Compares models for a continuous response with a cut-off value.
cv.cornet(
y,
cutoff,
X,
alpha = 1,
nfolds.ext = 5,
nfolds.int = 10,
foldid.ext = NULL,
foldid.int = NULL,
type.measure = "deviance",
rf = FALSE,
xgboost = FALSE,
...
)
continuous outcome: vector of length \(n\)
cut-off point for dichotomising outcome into classes:
meaningful value between min(y)
and max(y)
features: numeric matrix with \(n\) rows (samples) and \(p\) columns (variables)
elastic net mixing parameter: numeric between \(0\) (ridge) and \(1\) (lasso)
number of external folds
internal fold identifiers:
vector of length \(n\) with entries
between \(1\) and nfolds.int
;
or NULL
external fold identifiers:
vector of length \(n\) with entries
between \(1\) and nfolds.ext
;
or NULL
number of internal folds
loss function for binary classification:
character "deviance"
, "mse"
, "mae"
,
or "class"
(see cv.glmnet
)
comparison with random forest: logical
comparison with extreme gradient boosting: logical
Computes the cross-validated loss of logistic and combined regression.