build.model.crossval | R Documentation |
Train model Random Forest
build.model.crossval(x, y, list.selected.var, list.index.cross, nvar)
x |
input data where columns are variables and rows are observations (all numeric) |
y |
decision variable as a boolean vector of length equal to number of observations |
list.selected.var |
A |
list.index.cross |
A |
nvar |
the number of first variables for which to train model Random Forest |
Train model Random Forest in cross-validation and variables selected in the cross-validatio
A list
with metrics Accuracy, AUC, MCC
## Not run:
class <- data$class
data$class <- NULL
list.index.cross <- cross.val(x = data,
y = decisions,
method = 'kfoldcv',
params.cv = list(niter = 10, k = 3))
list.selected.var <- feature.selection(x = data,
y = class,
method = 'fs.utest',
list.index.cross = list.index.cross,
params = list(adjust = 'holm', alpha = 0.05))
model.result <- build.model.crossval(x = data,
y = class,
list.selected.var = list.selected.var,
list.index.cross = list.index.cross,
nvar = 10)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.