The happiness_train and happiness_test datasets are generated based on the "World Happiness Report" at Kaggle https://www.kaggle.com/datasets/unsdsn/world-happiness.

data(happiness_train)
data(happiness_test)

Format

two data frames with total 781 rows, 7 columns ech and rownames

Source

World Happiness Report data https://worldhappiness.report/

Details

It contains data for 781 countries and 7 variables. These are:

  • score - Happiness score

  • gdp_per_capita - GDP per capita

  • social_support - Social support

  • healthy_life_expectancy - Healthy life expectancy

  • freedom_life_choices - Freedom to make life choices

  • generosity - Generosity

  • perceptions_of_corruption - Perceptions of corruption