Learn R Programming

crtests (version 0.2.1)

runtest: Run a classification or regression test

Description

Run a classification or regression test

Usage

runtest(test, ...)
"runtest"(test, ...)

Arguments

test
An object of class 'classification' or 'regression'
...
Extra arguments to runtest

Methods (by class)

Examples

Run this code
data(iris)
# A classification test
test <- createtest(data = iris, 
                  dependent = "Species",
                  problem = "classification",
                  method = "randomForest",
                  name = "An example classification test",
                  train_index = sample(150, 100)
)
## Not run: 
# # Run the test
# runtest(test)
# ## End(Not run)

Run the code above in your browser using DataLab