Chapter 3: Density estimation -- Beyond the DP


R code and data for selected examples: