Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Machine Learning with R Quick Start Guide

You're reading from   Machine Learning with R Quick Start Guide A beginner's guide to implementing machine learning techniques from scratch using R 3.5

Arrow left icon
Product type Paperback
Published in Mar 2019
Publisher Packt
ISBN-13 9781838644338
Length 250 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Iván Pastor Sanz Iván Pastor Sanz
Author Profile Icon Iván Pastor Sanz
Iván Pastor Sanz
Arrow right icon
View More author details
Toc

Clustering countries based on macroeconomic imbalances

In this section, we will develop an unsupervised model to visually detect macroeconomic problems in countries and also understand a little more about the main drivers of credit ratings. We will start by creating a cluster of the countries with macroeconomic problems. In the next chapter, we will move on to predicting the credit ratings based on these clusters.

Throughout this chapter, I've tried to make an effort to reiterate the code from the previous chapters.

Let's get started!

Data collection

As in the previous model, we need to collect the largest amount of data possible. First, we need the macroeconomic indicators of countries to analyze the macroeconomic...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at AU $24.99/month. Cancel anytime