Indiana University
University Information Technology Services
  
What are archived documents?
Login>>
Login

Login is for authorized groups (e.g., UITS, OVPIT, and TCC) that need access to specialized Knowledge Base documents. Otherwise, simply use the Knowledge Base without logging in.

Close

At IU, how do I use Stata from a Unix system?

At Indiana University, Stata/SE is available on Quarry (running Linux). You can run Stata in interactive mode, non-interactive mode, or GUI mode using the X Window System.

Note: Before starting Stata, you will first have to run the SoftEnv tools; see On Big Red and Quarry at IU, how can I use SoftEnv to customize my software environment?

Interactive mode

To access Stata/SE in interactive mode, at the system prompt, enter:

stata

At the Stata prompt ( . ), enter your command line, and then press Enter to execute the command.

To terminate the session, enter exit .

Non-interactive (batch) mode

To run a job in non-interactive mode, at the system prompt, enter:

stata -b do your_do_file

Replace your_do_file with the appropriate Stata .do file. If a .do file is successfully executed, the output will be written to a log file (input file with a .log extension) in the default directory.

GUI (X Window System) mode

To use Stata in GUI mode, you need to have an X Server running on your computer. If you are using a version of Windows, use an X Server such as Exceed to open an X terminal from Quarry (such as xterm).

To access Stata in the X Window System, at the X terminal prompt, enter:

xstata

This will have an interface similar to the Microsoft Windows or the Mac OS environment. To terminate the session, enter exit .

Stata in GUI mode does not support non-interactive (batch) job processing.

For further assistance with Stata, visit the Stat/Math Center Statistical Software Support page.

For more information about statistical and mathematical software, email the UITS Stat/Math Center, visit the center's web page, or phone 812-855-4724 (IUB) or 317-278-4740 (IUPUI). The center is located in Bloomington at 410 N. Park Avenue, and is open for consultation by appointment Monday-Friday 9am-5pm.

This is document amky in domain all.
Last modified on February 19, 2009.

Comments/Questions/Corrections

Use this form to offer suggestions, corrections, and additions to the Knowledge Base. We welcome your input!

If you are affiliated with Indiana University and would like assistance with a specific computing problem, please use the Ask a Consultant form, or contact your campus Support Center.

Contact Information

Note: We will reply to your comment at this address. If your message concerns a problem receiving email, please enter an alternate email address.