Stata is a powerful statistical package that provides data management, statistical analysis, simulations, high quality graphics, and programming tools. It is often used in the fields of epidemiology, biomedicine, economics, and sociology. Stata allows user-written commands, which can be loaded into Stata and used along with the Stata built-in commands. A wide variety of data formats are supported, including .csv (ASCII comma separated value) and .xls and .xlsx (Microsoft Excel’s formats). Stata’s own file format is platform independent and can be easily copied from one operating system to another.
Availability and Setup
Stata version 12.0 is available on the Shared Computing Cluster (SCC). There are two builds available – Stata/MP (multiprocessor version) and Stata/IC (standard version). Both are available in either a command-line or graphical user interface (GUI) mode. Stata/MP is the fastest version of Stata and is designed for advanced parallel processing. It allows datasets with as many as 32,767 variables with at most 10,998 right-hand-side variables in a model. Stata/IC allows datasets with as many as 2,047 variables with at most 798 right-hand-side variables in a model.
BU faculty, staff, and students can purchase an individual Stata license. For prices, consult Stata’s website.
To enable the Graphics User Interface mode, Stata should be invoked under the X Window System on X terminals or workstations.
To run Stata in the default command-line mode on the SCC, type:
To run Stata in the interactive GUI mode on the SCC, type:
To invoke the multiprocessor version of Stata in either command-line or GUI mode, type stata-mp or xstata-mp respectively at the scc1 prompt.
To exit Stata type exit at the Stata prompt.
To execute a Stata file in a non-interactive (running in the background) mode, type:
scc1% stata -b do filename
To get help for an individual Stata command, type help command, for example help mean will provide a help page for the usage of the mean command. During an interactive GUI session, you can also ask for the complete help manual, by selecting Help -> PDF Documentation in the menu or by typing help at the Stata prompt.
Document Name: Stata
Author/Maintainer: Katia Oleinik
Executable: /usr/local/bin/stata, /usr/local/bin/xstata, /usr/local/bin/stata-mp, /usr/local/bin/xstata-mp
Keywords: stata, statistics
Machines List: SCC
Created December 17, 2012; Last Revised December 17, 2012; Last Modified December 17, 2012
URL of this document: http://www.bu.edu/tech/about/research/training/scv-software-packages/stata-basics/
Go up to SCV Software Packages