Happiness and PCA

Let’s do a principal component analysis of the underlying variables in the estimation of the Happiness Index. They are

Real GDP per capita
Social support
Healthy life expectancy
Freedom to make life choices
Generosity
Perceptions of corruption

The objective is to see how countries are clustered together in the PCA.