Function for making Decision Trees.
tree( data, vars, facs, target, targetLevel, train, trainLevel, showPlot = FALSE )
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 | . |
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 |
if (FALSE) { # example will be added }