Stata is campus-licensed statistical software. The current version is Intercooled (IC) Stata 12 for Windows and Mac OS X machines.
You can download the software from the software download site. Follow the link for your computer, and then choose "Windows" or "Macintosh" then "Academic Software." You'll find Stata in the list.
In order to run the software you need a supporting application called KeyAccess. See Using KeyAccess to Activate Software (Mac instructions) (Windows instructions) for help with this.
KeyAccess (K2Client) allows you to run KeyServed applications. KeyServed applications are those where the server determines whether or not you're authorized to use the application. The Dartmouth KeyServer address is keyserver.dartmouth.edu. This must be set in the KeyAccess setup dialog.
Stata will download as a Zip file for Windows computers and as an dmg file on Macintosh computers.
For Windows users, open Zip folder (Stata12 and then Stata12 Installer) and double click the Stata12MSI file. When the installation is complete, launch the program by clicking Start then All Programs then Stata12 then StataIC 12 (64-bit) or StataIC12 (32-bit) (If you are using 64-bit OS, you will see the former otherwise the latter) . Pull the STATA.LIC file in the download zip folder into Program Files (x86)/Stata12 if you were prompted to ask some license information.
For Macintosh users, when the download is complete, download click the file that was downloaded to expand it (this may happen automatically). To install the program, click the appropriate Install-Stata icon (most users will want the Intel version; old Macs may need the PPC version. This will save any existing Stata as Stata-old, then copy the new Stata to the Applications folder. To uninstall the program, just delete the entire Stata folder from Applications.
When installing Stata, do not enable automatic updates, that can break the KeyServed version of Stata. And you do not need to register the product.
If you have trouble please stop by the Student IT Service Desk for help. We are located in 178J Berry Library.
For questions about using Stata not answered on this page, or for consulting requests regarding statistics, contact Jianjun Hua at 646-6552 or statistical.consulting@dartmouth.edu.
When you launch Stata, you'll see several windows that you'll use while working with the program:
Log files keep a record of the command statements you enter and Stata's output. Specifying a filename saves the log to a file; saving as a log format rather than the default SMCL format will allow you to open the log in other applications (like Word and Notepad).
A log file can be opened/started from the File - Log menu or with the log command. The replace option overwrites the log file; append adds to it. On or off option turns the logging on or off in the middle of a session; close option closes the log file.
log using "c:\my documents\clients\hsb.log", replace text
log off (you practice for a while, not wanting to save all your mistakes)
log on (you turn the log back on so you can save real work)
It's wise to open a log file at the beginning of a session, turning it on or off as you need to save commands and results.
Stata can read the following filetypes:
.dta - a data file in Stata format
.txt - data in ASCII (text) format
.raw - data in ASCII (text) format
.xls - a data file in Excel format
Different command statements are used to load data sets in different file formats. Most commonly you'll issue the use command to read Stata formatted data sets.
You can often cut and paste data from other applications into Stata's data editor.
Data sets in Stata follow the format where rows are cases/observations and columns are variables.
Graphs do not get written to the log files. They must be saved using File-Save Graph