From the course: Complete Guide to R: Wrangling, Visualizing, and Modeling Data

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Grouping cases with hierarchical clustering

Grouping cases with hierarchical clustering

- [Instructor] Marketing and medicine and so many other applied domains. One of the most important questions is what cases, what people, what organizations go with whom? If you're in marketing, you may want to send out the same appeals to similar groups of people. If you're in medicine, you want to find out which patients are similar to one another so you can make a better prognosis and treatment plan. Underlying both of these is cluster analysis, the idea that you want to take the data that you have, and based on that data, find out which cases are most similar to one another. Now, the important thing about this is there's judgment calls in this one, because similar is a psychological concept, it's a construct, and there are many different ways of going about that. I want to show you one of the most flexible is called hierarchical clustering. Now, to do this, I'm going to load a few packages including one called cluster, another called factoextra. We can do cluster analysis, but…

Contents