How to Use STATA at the FSU HPC

STATA is a software tool for performing statistical analysis of data. The STATA software is licensed and has been provided by the department of political science. To use STATA, you must request access to the HPC queue polisci_q. Only users who are allowed to use the program.

For interactive use of STATA, use the following command on an HPC login node:

msub -I -q polisci_q

This command will connect you to a node where STATA is installed. If you want to use the gui version of STATA you must connect to the HPC via ssh with X11 packet forwarding enabled. To use the STATA binaries you must setup the environment for STATA:

For bash shell users use:
source /usr/local/stata/setup-stata.sh
For csh shell users use
source /usr/local/stata/setup-stata.csh 

The stata binaries are:

xstata
-- the gui version of STATA
xstata-mp
-- the gui multi-processor version of STATA
stata
-- the batch version of STATA
stata-mp
-- the batch multi-processor version of STATA

The following is an example of a batch job running STATA via MOAB with a do-file called sample.do.

#!/bin/bash

#MOAB -q polisci_q 
source /usr/local/stata/setup-stata.sh 
stata -b do sample.do