Giter VIP home page Giter VIP logo

happiness-report's Introduction

World Happiness

Shiny app that show happiness scores of countries around the world in 2015, 2016 and 2017.

App URL: https://saurabh4310.shinyapps.io/HAPPINESS/

Overview

Experts across fields such as economics, psychology, and public policy have pointed out that measurements of well-being are important in assessing the progress of nations. Hence, governments, organizations and civil society increasingly use happiness indicators to inform their policy-making decisions. I propose building a data visualization app that allows policy-makers and civil society leaders of all levels to visually explore a dataset of factors that contribute to the level of happiness in different countries and regions.

Data

I will be visualizing a dataset of 166 countries in three years (2015, 2016, 2017)^1. I get the data from Kaggle - The World Happiness Report. The World Happiness Report is a landmark survey of the state of global happiness. The first report was published in 2012, and the rest followed in 2013, 2015, 2016 and 2017. The happiness scores and rankings in the data set are from the Gallup World Poll. Each country in the data sets has 11 associated variables^2 that describe the geographical position (Region), happiness rank and score^3 (Happiness.Rank, Happiness.Score) and various other scores (Economy^4, Family, Health^5, Freedom, Government.Corruption, Generosity) that estimate the extent to which each of six factors contribute to making life evaluations higher in each country than they are in Dystopia, a hypothetical country that has values equal to the world’s lowest national averages for each of the six factors. These other scores do not have an impact on the total happiness score reported for each country, but they can explain why some countries rank higher than others.


  1. Countries included in the datasets for different years differ slightly. 2015 data has 158 countries, 2016 has 157 countries, and 2017 has 155 countries. In total, there are 166 unique countries included in the three data sets as a whole.

  2. Excluding the "Country" column which indicates the name of the country.

  3. The scores are based on answers to the main life evaluation question asked in the Gallup World Poll. This question, known as the Cantril ladder, asks respondents to think of a ladder with the best possible life for them being a 10 and the worst possible life being a 0 and to rate their own current lives on that scale. The scores are from nationally representative samples for the years 2013-2016 and use the Gallup weights to make the estimates representative.

  4. GDP per capita

  5. Life expectancy

Reproducing the Report

If you wish to run the app from R Studio instead of going to the above link, you can use the following steps:

  1. Download all items in the HAPPINESS folder
  2. Open HAPPINESS.Rproj in R Studio
  3. Make sure both data and docs folder are present
  4. Open APP.R
  5. Click "Run App" in the upper right corner of the code panel
  6. (optional) Click "Open in Browser" in the upper left corner of the app window if you wish to view in browser

happiness-report's People

Contributors

saurabh4310 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.