From the course: R Essential Training Part 2: Modeling Data

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Classifying cases with decision tree analysis

Classifying cases with decision tree analysis

From the course: R Essential Training Part 2: Modeling Data

Start my 1-month free trial

Classifying cases with decision tree analysis

- When you're working with data, sometimes you're building a model that your algorithm is going to implement directly on its own, like a recommendation engine on a eCommerce website. But in many other circumstances, if you're building a model for a humans, they actually need to be able to understand what's happening and given that humans are visual animals, a graphic that can portray the entire model as priceless. And that's one of the things I love about decision trees. You get the entire model with a picture, a series of yes/no decisions. And I'm want to show you how this works in R. We're going to start by learning a few packages including caret which is used for a number of predictive analysis, and rattle which allows me to produce a slightly prettier and more informative graphic for a decision tree. So let's load those packages. And then I'm going to come down and use the big five data set that we've used in other…

Contents