finished code for 3a-d. Need to apply it over the various estimators and check out formatting inside of .rnw.