Description Usage Arguments Value Examples
Classification And Regression Tree is a simple technique to fit a relationship between numerical variables partitioning the target variable by a range of values of the explanatory variables. This function fits and graphs a cart model with a previous separation of training a testing datasets.
1 2 3 4 5 6 7 8 9 10 |
formula |
a formula of the form y ~ x1 + x2 + ... |
data |
the data frame that contains the variables specified in |
p |
the percentage of the training dataset to be obtained randomly. |
nodes_min |
Number of minimum nodes. |
nodes_max |
Number of maximum nodes. |
includedata |
logicals. If TRUE the training and testing datasets are returned. |
seed |
a single value, interpreted as an integer, or NULL. The default value is NULL, but for future checks of the model or models generated it is advisable to set a random seed to be able to reproduce it. |
... |
further arguments passed to or from other methods. |
A MLA object of subclass CART
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.