Why user-written Programs

The following list of Stata programs can be utilized in finance and accounting research and other related fields. In finance, we often work with large datasets, and some of the built-in data tools in Stata can be quite slow when processing such data sets. For example, the xtile command used for creating quantile groups, or the rolling command for rolling window calculations, can be particularly slow. These limitations have been a source of frustration for me and have motivated me to develop the following commands.