happiness function

World Happiness Report data

World Happiness Report data

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

Format

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

Source

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

data(happiness_train) data(happiness_test)

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