Cox, N. (2002). On getting functions to do the work. The Stata Journal, 2, 411-427