forestDSS | R Documentation |
Calls 'randomForest::randomForest' with formula dep_var ~ expl_vars. The number of trees produced is proportional to the number of rows in the dataset, but with a minimum of 10 and a maximum of 150 trees.
forestDSS(...)
df: |
[data frame] The training dataset. |
dep_var: |
[string] the response factor ("y"), i.e. the categories that will be the leaves of the tree. |
expl_vars: |
[vector[string]] the classification variables. |
nodesize: |
minimal number of points in the terminal nodes. We fix this high enough to ensure more privacy. Default is 1 for classification and 5 for regression. |
...: |
other parameters to 'randomForest'. |
a randomForest object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.