This is an archive for the code to recreate the simulations
for the note:  A Compound Decision Bakeoff

The files sim[1234].R run the simulations for Tables 1-4.
The files sim[1234]a.R create the Tables 1-4.  The corresponding
oracle tables 5-8 are done with simor[1234].R and simor[1234]a.R.

The files ex1.R and oracle.R provide some preliminary testing.
The original Martin and Walker code available from Martin's website
was used for sim1.R, while a vectorized version given in ex1.R was
used in the remaining simulations since it was substantially faster.

Note that the simulations were run on a Mac pro using R's foreach()
construct and the random seeds for each instance of foreach are set
to be identical.  Roughly speaking, each of the 8 simulations requires
about 2 hours on my Mac Pro.

Roger Koenker
Oct 22 2013

total 160
-rw-r--r--  1 roger  roger  1475 Oct 18 13:43 ex1.R
-rw-r--r--  1 roger  roger   872 Oct 18 13:43 oracle.R
-rw-r--r--@ 1 roger  roger  1302 Oct 18 13:43 sim1.R
-rw-r--r--  1 roger  roger   438 Oct 18 13:43 sim1a.R
-rw-r--r--  1 roger  roger  1227 Oct 18 13:43 sim2.R
-rw-r--r--  1 roger  roger  1062 Oct 18 13:43 sim2a.R
-rw-r--r--  1 roger  roger  1288 Oct 18 13:43 sim3.R
-rw-r--r--  1 roger  roger   433 Oct 18 13:43 sim3a.R
-rw-r--r--  1 roger  roger  1216 Oct 18 13:43 sim4.R
-rw-r--r--  1 roger  roger   710 Oct 18 13:43 sim4a.R
-rw-r--r--  1 roger  roger  1477 Oct 18 13:43 sim5.R
-rw-r--r--  1 roger  roger  1154 Oct 18 13:43 sim5a.R
-rw-r--r--  1 roger  roger   848 Oct 18 13:43 simor1.R
-rw-r--r--  1 roger  roger   444 Oct 18 13:43 simor1a.R
-rw-r--r--  1 roger  roger   810 Oct 18 13:43 simor2.R
-rw-r--r--  1 roger  roger   800 Oct 18 13:43 simor2a.R
-rw-r--r--  1 roger  roger   970 Oct 18 13:43 simor3.R
-rw-r--r--  1 roger  roger   437 Oct 18 13:43 simor3a.R
-rw-r--r--  1 roger  roger   796 Oct 18 13:43 simor4.R
-rw-r--r--  1 roger  roger   354 Oct 18 13:43 simor4a.R
