R code for first homework. Including two types of t-test simulation property study and sandwich estimates.