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 In Modules, how do I save my environment with a .modules file?

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.

Note:
For details about availability of UITS services during Thanksgiving break, see UITS Thanksgiving break support hours.

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

  • Fill out this form to submit your issue to the UITS Support Center.
  • Please note that you must be affiliated with Indiana University to receive support.
  • All fields are required.

Please provide your IU email address. If you currently have a problem receiving email at your IU account, enter an alternate email address.

  • Fill out this form to submit your comment to the IU Knowledge Base.
  • If you are affiliated with Indiana University and need help with a computing problem, please use the I need help with a computing problem section above, or contact your campus Support Center.

Please provide your IU email address. If you currently have a problem receiving email at your IU account, enter an alternate email address.