At IU, how do I use Stata on Karst?

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:
      stata

    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 (e.g., Exceed) to open an X terminal from Karst (e.g., xterm).

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

      xstata

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

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

For more, see What is Stata, and how do I access it at IU?

If you have questions about using statistical and mathematical software at Indiana University, contact Research Analytics. Research Analytics is located on the IU Bloomington campus at Woodburn Hall 200; staff are available for consultation Monday-Friday 9am-noon and by appointment.

This is document amky in the Knowledge Base.
Last modified on 2016-11-15 13:37:26.

Contact us

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