Description Usage Arguments Value Note Examples
Predict with a Tree
1 |
mod |
A tree model constructed by package |
testSet |
The test set (a data frame). |
truth |
Correct values of the response variable. |
printOut |
If TRUE, provide a printout to the console. |
A list containing: deviance
and residMeanDev
(residual mean deviance). If mod
is a classification tree, then the list
also contains error.rate
, misclass
(number of misclassifications
at terminal nodes), and confusion
(the confusion matrix).
For more details on use, consult http://statistics.rainandrhino.org/tigerTree/divideTrainTest.html
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.