Analysis code from my PhD analysis, placed here as part of a code portfolio.  I will not claim that it is well written, or meticulou