Description Usage Arguments Value Methods (by class)
Generic function for creating a classification model
1 2 3 4 5 6 7 8 9 10 | classification_model(method, test, x, y, training_data, ...)
## Default S3 method:
classification_model(method, test, x, y, training_data, ...)
## S3 method for class 'rpart'
classification_model(method, test, x, y, training_data, ...)
## S3 method for class 'boosting'
classification_model(method, test, x, y, training_data, ...)
|
method |
The method for classification. |
test |
The test being conducted |
x |
The independent variables. |
y |
The dependent (class) variable. Should be a factor for most algorithms |
training_data |
The complete data set for training |
... |
Extra arguments to pass to the classification algorithm |
The produced model
default
: Default function for creating a classification model
get
s the method and calls it using x
, y
, and data
rpart
: Rpart specific function for creating a classification model
RPart requires a formula for classification, which is not provided by the default function
boosting
: Create a classification model using Freund & Schapire's adaboost.M1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.