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


CHAPTER 3

Chap3.an1  --  Function  H_n  and the MSEs of alternative estimators
Vectors  Ch3Hn and Ch3MSE  (Figure 3.1, page 35)

Chap3.an2  --  Estimating $\sigma^2$ with piecewise linear loss; page 36
Function  Ch3VL
List Ch3VLs  (application of Ch3VL en masse)
Vectors  Ch3ptr and Ch3ptn  --  the values of  R  and  n  for evaluation of Ch3VLs

Chap3.an4  --  Graphics for Ch3VLS  (Figure 3.2, page 37)
Matrix  Ch3VL1  --  an extract from  Ch3VLs

Chap3.an5  --  Newton method for estimating $\sigma$ with quadratic loss
Function:  Ch3VQ;  auxiliary function  Ch3H  ($Hn$)
Objects  Ch3VQr  --  single application;  Ch3VQr (overwrite)  --  application en masse

Chap3.an6  --  Application of  Ch3VQ  en masse
Object  Ch3VQs  --  results for Ch3ptr ($R$)  and  Ch3ptn  ($n$)

Chap3.an7  --  Graphics for Ch3VQs (Chap3.an6,  Figure 3.3, page 39) 

Chap3.an8  --  Graphics for Ch3VLs and Ch3VQs  (Figure 3.4, page 39)
Comparison of the coefficients for the linear and quadratic loss
Matrix Ch3cd  --  extract from Ch3VLs and Ch3VQs


Chap3A.an1  --  Newton-Raphson alg. for the equilibrium with multiplicative loss
Variance vs. constant, Sect. 3.3, page 40
Function  Ch3MA   (an alternative in  Chap3A.anA)
Matrix Ch3MAr  --  Single application of  Ch3MA (detailed output)

Chap3A.an2  --  Application of Ch3MA en masse
Vectors Ch3MAn and Ch3MAp --  settings of the values of  n  and  R
List  Ch3MAs  --  all the results

Chap3A.an3  --  Graphics for  Cha3MAs  (Figure 3.5, page 43)

Chap3B.an1  --  Check on the expression for c*, page 43, bottom 
Function  Ch3Fshr  --  output  Ch3FshrR  (a short vector) and a diagram

