Function for making Decision Trees.
Usage
tree(
data,
vars,
facs,
target,
targetLevel,
train,
trainLevel,
showPlot = FALSE
)
Arguments
- data
The data as a data frame.
- vars
continuous explanatory variables
- facs
categorical explanatory variables
- target
target variable
- targetLevel
.
- train
Variable containing Test/Train information
- trainLevel
.
- showPlot
.
Value
A results object containing:
results$todo | | | | | a html |
results$text1 | | | | | a preformatted |
results$text2 | | | | | a preformatted |
results$text2a | | | | | a preformatted |
results$text2b | | | | | a preformatted |
results$text3 | | | | | a preformatted |
results$text4 | | | | | a html |
Examples
# \donttest{
# example will be added
# }