Stata

From UFRC
Jump to navigation Jump to search

Description

Stata website  

Stata statistical software is a complete, integrated statistical software package that provides everything you need for data analysis, data management, and graphics.

Required Modules

modules documentation

Serial

  • stata

System Variables

  • HPC_STATA_DIR - installation directory
  • HPC_STATA_BIN - executable program directory

How To Run

Graphical interface

To use the graphical interface for Stata, you will need to ensure X11 forwarding is enabled and connect via the GUI nodes. The GUI Programs page has general instructions for setting this up.

Once connected, use "module load stata" to setup Stata and one of the following commands to launch the version of Stata you wish to run:

xstata - the default version
xstata-mp - the multi-processor version (Licensed for up to 8-cores)
xstata-se - the special edition

Note that the "x" here indicates X11, the method used to present the graphical interface to the user.

Batch system and interactive text-based

When Stata is run through the batch system or interactively in the text only mode, the "x" is not needed, and the commands to open the different versions are:

stata - the default version
stata-mp - the multi-processor version (Licensed for up to 8-cores)
stata-se - the special edition

See below for a PBS script example for submitting to the batch system.

Ado-files

Stata uses ado-files to add programability to Stata. Ado-files extend the functionality of Stata by adding new functions. Some ado-files are provided by Stata and are already installed, others can be downloaded from various sources. To use an ado-file, it needs to be in on of several special locations. These locations can be found using the sysdir command within Stata:

. sysdir
   STATA:  /apps/stata/stata13/
   BASE:  /apps/stata/stata13/ado/base/
   SITE:  /apps/stata/ado/
   PLUS:  ~/ado/plus/
   PERSONAL:  ~/ado/personal/
   OLDPLACE:  ~/ado/

In addition, Stata will also look in the current directory.

Users cannot add ado-files to any of the /apps/stata/ directories, but should instead add ado-files to one of the ~/ado directories (note that the "~" character is shorthand for your home directory-- /home/$USER/), or in the directory where they are executing stata.

If you know of an ado-file that you think will be broadly used by UF researchers, and it would make sense to install it for everyone to be able to use, please open a support request, and the Research Computing staff can add it to one of the /apps/stata/ directories.