Use Stata on Karst at IU

At Indiana University, Stata is available on Karst.

To use Stata on Karst, add the Stata package to your shell environment. At the command prompt, enter:

  module load stata

To make permanent changes to your environment, edit your ~/.modules file. For more, see Use a .modules file in your home directory to save your user environment on an IU research supercomputer.

You can run Stata on Karst in interactive mode, non-interactive mode, or from a graphical user interface (GUI) on an X Window System:

  • Interactive mode: To use Stata in interactive mode, at the command prompt, enter:

    At the Stata prompt (.), enter a command, and then press Enter or Return to execute the command.

    To end your Stata session, at the Stata prompt, enter exit.

  • Non-interactive (batch) mode: To run a Stata job in non-interactive mode, at the command prompt, enter (replace your_do_file with the appropriate Stata .do file):
      stata -b do your_do_file

    If a .do file is successfully executed, the output will be written to a log file (an 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're using Windows, use an X Server (for example, Exceed) to open an X terminal from Karst (for example, xterm).

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


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

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

For more, see About Stata at IU.

If you have questions about using statistical and mathematical software at Indiana University, contact the UITS Research Applications and Deep Learning team.

This is document amky in the Knowledge Base.
Last modified on 2019-01-31 15:41:04.

Contact us

For help or to comment, email the UITS Support Center.