R code I find useful (as an epidemiologist with a Stata background)