PROVIDER - the econometrics workhorse of economics and epidemiology

Stata

Stata has shipped from StataCorp since 1985, recording full analyses in do files behind concise commands, with 3 built-in families covering panel data, survival analysis and survey sampling plus Mata for custom estimators; licence cost, engineering limits and ecosystem size are the practical boundaries.

Programming Languages & Frameworks United States 2026.11.19
3.8pts

Service Overview

Stata was released by StataCorp in 1985 as statistical software for empirical research. Command syntax is central, and every analysis step can be written into a do file to form a reproducible pipeline.

In the languages and frameworks category it is the econometrics standard: panel data, instrumental variables and difference-in-differences all have mature commands.

Key Strengths

  • Concise commands: one regress line fits a model and prints a properly formatted table
  • Reproducible flow: do files record every step for review and recomputation
  • Complete econometrics: panel data, survival analysis and survey sampling work out of the box
  • Extensible: Mata and ado packages support custom estimators and algorithms
  • Version stability: data formats and commands stay compatible, so older projects continue easily

Product Ecosystem

Language and extensions

The Stata command language, do files, the Mata matrix language and the ado package distribution mechanism.

Common methods

Panel fixed effects, difference-in-differences, instrumental variables, propensity score matching and survival analysis.

Application areas

Economics papers, epidemiology and public health, social surveys and policy evaluation.

Limitations

  • Licence cost: billed by edition and concurrent user, exceeding R over time
  • Weak engineering: data cleaning and system integration need Python or similar
  • Graphics limits: complex visualisation is exported and post-processed elsewhere
  • Ecosystem size: new methods arrive slower than in R or Python communities

Use Cases

  • Empirical economics research (★★★★★): panel and causal inference commands are mature
  • Public health and epidemiology (★★★★): survival analysis and survey sampling are complete
  • Policy evaluation and survey data (★★★★): weighting and complex sampling support
  • Machine learning and engineered pipelines (★★): Python fits better

Pricing

Item Price Notes
Stata/IC single-user licence Annual or perpetual Higher editions support more data and features
Stata/SE and MP Annual or perpetual For larger datasets and multi-core work
Student and academic licences Low cost Usually purchased by institutions

Students can start with low-cost editions, while commercial and research institutions buy by edition and concurrent user.

FAQ

  • Stata or R? Choose Stata for panel and causal inference work, and R for method research and visualisation extension, with data convertible between them.
  • Are do files mandatory? Strongly recommended, since they are the minimum requirement for reproducible research and make handover practical.
  • Does it handle big data? It is memory-bound, typically pairing Stata/MP with large memory, while very large data needs sampling or an external database. More statistics options are under languages and frameworks.

Code Examples

Panel fixed effects regression

use "panel.dta", clear

xtset firm_id year
xtreg roa leverage size age i.year, fe vce(cluster firm_id)

estimates store fe_model

xtset declares the panel structure, fe selects fixed effects, and vce(cluster ...) computes clustered robust standard errors.

Difference-in-differences with export

gen post = (year >= 2018)
gen treated_post = treated * post

regress y treated post treated_post, vce(cluster firm_id)

outreg2 using "did.doc", replace ctitle(DID) keep(treated post treated_post) dec(3)

The interaction coefficient is the difference-in-differences estimate, and outreg2 writes the table out.

Community & Resources

Visit Stata Website → https://www.stata.com/
Visit Website ↗