calc_vimps(
data.frame(
X1=c(2,8,3,9,1,4,3,8,0,9,2,8,3,9,1,4,3,8,0,9),
X2=c(7,2,5,0,9,1,8,8,3,9,7,2,5,0,9,1,8,8,3,9),
Y=c(0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,1,1,1,1,1)),
"Y",
data.frame(domain=c('X1','X2'),
variable=c('X1','X2')),
num_folds=2,
num_kos=1,
iterations=50)
Run the code above in your browser using DataLab