An introduction to Stata programming - Baum, Christopher F. (Stata Press, 2009)