Skip to main content
100%

tut4

✓ Published0🌍 Public
BBenHeubl
Last edited Feb 13, 2020
Created on Feb 13, 2020

This example shows a decision tree model predicting the percentage of votes to leave the EU, visualized as a tree diagram. It uses the R packages `rpart` and `rpart.plot` to build and render the classification tree from training data. The code sets the complexity parameter to zero via `rpart.control(cp = 0)`, producing a fully grown tree. The plot displays nodes and splits, revealing patterns in the Brexit voting data.

AI-generated description

Similar vizzes