Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

Stata

< >

Stata is an open source programming language created in 1985 by William Gould.

#135on PLDB 39Years Old 8kRepos
Homepage · Wikipedia · Twitter · Docs

Stata is a general-purpose statistical software package created in 1985 by StataCorp. Most of its users work in research, especially in the fields of economics, sociology, political science, biomedicine and epidemiology. Stata's capabilities include data management, statistical analysis, graphics, simulations, regression, and custom programming. Read more on Wikipedia...


/* Hello world in Stata */ .program hello 1. display "Hello, World!" 2. end .hello
Example from Linguist:
local MAXDIM 800
Example from Wikipedia:
program define fizzbuzz args x forvalues i = 1(1)`x' { if mod(`i',15) == 0 { display "fizzbuzz" } else if mod(`i',5) == 0 { display "buzz" } else if mod(`i',3) == 0 { display "fizz" } else { display `i' } } end

Language features

Feature Supported Example Token
MultiLine Comments ✓ /* A comment */ /* */
Line Comments ✓ // A comment //
Comments ✓
Semantic Indentation X

- Build the next great programming language · Add · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements

Built with Scroll v154.3.0