Customized software components using Stata and Excel