Code for  Decision Theory for Statistical Problems
                (N.T. Longford)  SpringerBrief 2012


CHAPTER 7

Chap7.an0  --   Generate the population sizes and illiteracy rates in a country
Function  Ch7SA0  (with graphics);  dataset  Ch7SAD  --  DATASET  Chap7.dat

Chap7.an1  --  The illiteracy rate and the population size in the districts
Figure 7.1, page 97
Intermediate objects Ch7nat, Ch7mx1

Chap7.an2  --  Functions used in other Chap7.an* files
Functions  Ch7dss (stratified sampling),
                  Ch7Esi (moment matching estimation); results vector Ch7EsiS
                  Ch7zst (finding z*)
                  Ch7bds (finding b-star)
                   Ch7smr (summarising a replication)

Chap7.an3  --  One application of the functions in  Chap7.an2
RESULTS LOCKED IN FOR  Table 7.1, page 98
Intermediate objects Ch7zstR (z*'s), Ch7dssR (a sample), Ch7EsiR (between-
   district variance matrix - estimate), Ch7bdsR (coefficients b_d*), 
   Ch7smrR (losses - summary list)

Chap7.an4
Auxiliary function  Lmean
Settings -- RRs (penalty ratios), nRs (number of R's), nrp (number of replicates)
Intermediate objects -- Ch7zstR (z*s), Ch7bdsT, Ch7bdsU, Ch7bdsV, Ch7bdsW
Ch7dssS, Ch7bdsS
Summary list  Ch7smrS 

Chap7.an5 --  Graphics for the district-wise empirical expected losses
##  Figure 7.2, page 99
Function Ch7gra, results vector Ch7graR

