chapter6 function

chapter6 The 53 R-code chunks from On Uncertainty