Processing and analytic code (Stata and R)