Stata is a general purpose data analysis and statistical package used by researchers from differing backgrounds.  Further information can be found here. We have multiple versions of Stata installed. Please email for further details.

 

Using the single core SE version of Stata on the Cluster

If you have Stata installed locally on your PC, it is probable that it's the SE version. SE executes your Stata code, on a single core only. If you have Stata tasks which don't take particularly long to run, then this is probably the best version for you to use.

It is possible to use Stata 15 SE in a variety of ways:

  • Xinteractive (With Graphical User Interface - Single Core) - Stata15
  • Batch mode (Without Graphical User Interface - Single Core) - Stata15

 

Using the Multi Core MP version of Stata on the Cluster

It is possible to have your code execute on more than one core at any one time. HPC currently has Stata15 and Stata15 MP16 available, which represents the possibility of having your code executed on 16 cores simultaneously. Running your tasks in this fashion can offer significant performance benefits. Please see the following guide, which details theoretical performance gains. 

During testing, we found that "Parallelizable" jobs which normally ran for 2-3 hours on a computer running SE version, were taking around 20 minutes running on the MP version on ADA. Similarly jobs which were taking 4-5 days were taking around 9 hours to run, with Stata MP. A full guide to using Stata MP is available from the link below.

 

A Stata 15 MP16 submission script is shown below.

Stata15 MP16 jobscript sample

#!/bin/sh
#SBATCH --mail-type=ALL
#SBATCH --mail-user=<username>@uea.ac.uk
#SBATCH -p short-eth
#SBATCH --exclusive
#SBATCH --job-name=stata-test_job
#SBATCH -o stata-test-%J.out
#SBATCH -e stata-test-%J.err
. /etc/profile
module add stata/15
stata-mp -b do stata15_example.do

If you have any further questions please email hpc.admin

Commands to start Stata

Command Comments
xstata-se Starts Stata in GUI driven mode (Single cores)
stata-se Starts Stata in non GUI driven mode (Single core)
xstata-mp Starts Stata in GUI driven mode (Multiple core)
stata-mp Starts Stata in non GUI driven mode (Multiple core)

 

Using Stata on a large memory node

It is possible to use Stata on a large memory node, by altering the queue request, eg:

  • Xinteractive -q large-mem
  • interactive -q huge-memory