6.12 Exercises
6.12.1 Exercise
Make a histogram, Q-Q plot, and a box-plot for the life expectancy for a continent of your choice, but for all years. Do the data appear normally distributed?
6.12.2 Exercise
Select any 2 years in any continent and perform a t-test to determine whether mean life expectancy is significantly different. Remember to plot your data first.
Extract only the p-value from your
t.test()
output.
6.12.3 Exercise
In 2007, in which continents did mean life expectancy differ from 70?
6.12.4 Exercise
- Use ANOVA to determine if the population changed significantly through the 1990s/2000s in individual continents.