chapter5 function

chapter5 The 23 R-code chunks from Static Models