Perform the following steps to visualize the conditional inference tree:
- Use the plot function to plot ctree.model built in the last recipe:
> plot(ctree.model)
A conditional inference tree of churn data
- To obtain a simple conditional inference tree, one can reduce the built model with less input features and redraw the classification tree:
> daycharge.model = ctree(churn ~ total_day_charge, data
= trainset) > plot(daycharge.model)
A conditional inference tree using the total_day_charge variable as only a split condition