created Rmd for Figure2

created Rmd for Figure2 for paper on functional mediation analysis