$29.99
• Use R (or R Studio) to do the data manipulations and analyses.
• Compile your solution as a PDF document (Word, LATEXor Rmarkdown can be your base).
• Your data report should not exceed 10 pages in length (excluding plots and R codes).
However, use at most 4 plots in your report.
2. The Data
Statistical Appendix for ”The social foundation of world happiness”, John F. Helliwell, Hailing
The file happiness2017.csv in Quercus contains the data. The main variables in the dataset are:
• Ladder- the happiness score or subjective well-being of a country. Values are in the range 0 to 10, where 10 represent the best possible life.
• Social- the national average of the binary responses to the question “If you were in trouble, do you have relatives or friends you can count on to help you whenever you need them, or not?”
• HLE- Healthy life expectancy at birth based on data reported from the World Health Organization (WHO)
1
• Freedom - the national average to the question “Are you satisfied or dissatisfied with your freedom to choose what you do with your life?”
• Generosity - the residual of regressing the national average of the response to the question “Have you donated money to charity in the past month?” on GDP per capita
• Corruption - the national average to the two questions “Is corruption widespread throughout the government or not?” and “Is corruption widespread within businesses or not?”
• Positive - a measure of positive affect as the average of three positive affect measures happiness, laugh and enjoyment in the Gallup World Poll.
• Negative - a measure of negative affect as the average of three negative affect measures worry, sadness and anger in the Gallup World Poll.
• gini- the gini of household income in international dollars as reported in Gallup
The aim is to predict the happiness score of a country using the other nine (9) variables. Your report should include the following four sections, along with an Appendix.
3. The Project Report
2