A Commentary on Stata for Business

A Commentary on Stata for Business

Dr Con Menictas

Applied Statistician in Business and Marketing Sciences

Modern business analytics have come a long way in recent years with the focus on statistical modelling providing a competitive advantage. In the past, few models were used for prediction in business, such as OLS, logistic regression and simple time series models. In today’s business world and especially with the advances we have seen in computer technology, model complexity is more often called for than in the past.

Increases in market competition mean that the business analyst needs to act quickly and be able to manipulate data and build complex models fast, in order to gain market advantage. Even though there is a current trend of finding new and complex modelling software in the Open Source arena, the business analyst is usually time pressed and relied upon for accurate and optimal results quickly. In serious organisations, where there is little time to be searching for the correct code or the optimal graphics to convey a story to management, Stata outshines all other statistical software, because of its ease of use.

Stata is the leading package that allows the business analyst to do three very important things. First, it easily handles over 120,000 variables and over 2 billion rows of data. Second, Stata has the gentlest programming learning curve of any statistical package out there today and third, it has the most comprehensive suite of the latest statistical models to be found in any statistical package. Stata is the only platform that can manage data and analysis at the same time at this level, and offers coding speed like no other. Stata’s interactive coding is vetted and approved before it is adopted. Strict convention is adhered to for example:

model depvar [indepvars] [if] [in] [weight] [, options] Figure 1: Regression Model Output of the Auto Stata Dataset as an Example

Figure 1: Regression Model Output of the auto Stata Dataset as an Example

The business analyst is often required to provide visual stories for management because of the need to illustrate the results of an analysis. Stata graphics offer publication standard graphs in addition to markdown and dynamic documents, using very simple and intuitive coding for the purposes easily communicating and recording practically any analysis. Here is an example of a Stata graph (Figure 2) exhibiting very straightforward code.

histogram age, title(Histogram of Age) subtitle(Experienced Doctors) Figure 2: Example of a Stata Graph

Figure 2: Example of a Stata Graph

An example of Stata’s use in a business setting was for a complex choice model to estimate the optimal menu bundles for a fast food retailer that has global presence with outlets in all Australian states. A large dataset was provided in excess of 80 million rows and 17,000 variables on which to conduct an analysis prior to going to market research. The project required the construction of a choice model and a detailed multi-tiered segmentation.

A choice experiment was designed in a way that enabled the data that was collected to be used for a variety of choice models, in order to extract the maximum insights for both the product offering and customer type. We needed to estimate classical conditional logit choice models, mixed logit choice models, hierarchical choice models and MNL finite mixture models, in addition to latent class and segmentation models, for the purposes of satisfying client requirements.

Figure 3: A Small Extract of Stata's Choice Models

Figure 3: A Small Extract of Stata's Choice Models

Stata was able to provide everything in one package, without the need to be using multiple packages throughout the project, with the fastest turnaround times every experienced by the project team for such a complex and demanding project. Given the intuitive drop-down menus (Figure 3) and easy to understand code, the project team had more time to concentrate on the problem at hand, rather than fumbling through code fragments trying to get things to ‘work’.

Stata is relatively new in the space of business analysis, but it is the most exciting piece of software that quite honestly has to be experienced to be believed. You will not be disappointed!

Reproduced with permission from Dr Con Menictas