Skip to content

Using Stata via OnDemand

Stata is a general purpose statistical software package, that provides data management, statistical analysis, graphics, simulations, regression, and custom programming.

Using Stata on Apocrita via OnDemand allows you to run a GUI interface. Please refer to the overview section for instructions on how to login to OnDemand.

Starting a Stata session

Select Stata from the GUIs list of the Interactive Apps drop-down menu, or from the My Interactive Sessions page.

Choose the resources your job will need. Choosing a 1 hour maximum running time is the best option for getting a session quickly, unless you have access to owned nodes which may offer sessions immediately for up to 240hrs if resources are available.

Stata resources

Once clicking Launch, the request will be queued, and when resources have been allocated, you will be presented with the option to connect to the session by clicking on the blue Launch Stata button.

Once connected, the familiar Stata interface is presented, and you will be able to use the allocated resources, and access your research data located on Apocrita.

Stata session

Exiting the session

If a session exceeds the requested running time, it will be killed. You can finish your session using one of the following methods:

  • clicking [x] in the upper right corner of the Stata application
  • selecting File -> Exit from the application menus
  • clicking the red Delete button for the relevant session on the My Interactive Sessions page.

After a session ends, the resources will be returned to the cluster queues.