13 More with Gini coefficients and Lorenz curves

 

This chapter covers

  • Working (again) with Gini coefficients
  • Creating alternative Lorenz curves
  • Running significance tests (t-tests and F-tests)
  • Running other effect size tests (aside from Cohen’s d)
  • Writing for loops
  • Writing user-defined functions

It’s true that we’re going to again compute Gini coefficients, plot inequality by drawing Lorenz curves, perform more significance testing, and conduct additional effect size tests to complement our t-tests—but there’s a lot of new material packed into this chapter too:

13.1 Loading packages

13.2 Importing and viewing data

13.3 Wrangling data

13.4 Gini coefficients

13.5 Lorenz curves

13.6 For loops

13.6.1 Simple demonstration

13.6.2 Applying what we’ve learned

13.7 User-defined functions

13.8 Win share inequality and championships

13.8.3 Effect size testing