Difference between revisions of "Stata"

From UFRC
Jump to navigation Jump to search
Line 5: Line 5:
 
|{{#vardefine:app|Stata}}
 
|{{#vardefine:app|Stata}}
 
|{{#vardefine:url|http://www.stata.com}}
 
|{{#vardefine:url|http://www.stata.com}}
|{{#vardefine:exe|}} <!--Present manual instructions for running the software -->
+
|{{#vardefine:exe|1}} <!--Present manual instructions for running the software -->
 
|{{#vardefine:conf|}} <!--Enable config wiki page link - {{#vardefine:conf|1}} = ON/conf|}} = OFF-->
 
|{{#vardefine:conf|}} <!--Enable config wiki page link - {{#vardefine:conf|1}} = ON/conf|}} = OFF-->
 
|{{#vardefine:pbs|1}} <!--Enable PBS script wiki page link-->
 
|{{#vardefine:pbs|1}} <!--Enable PBS script wiki page link-->
Line 31: Line 31:
  
 
{{#if: {{#var: exe}}|==How To Run==
 
{{#if: {{#var: exe}}|==How To Run==
WRITE INSTRUCTIONS ON RUNNING THE ACTUAL BINARY|}}
+
===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/
 +
 
 +
 
 +
 
 +
 
 +
|}}
 
{{#if: {{#var: conf}}|==Configuration==
 
{{#if: {{#var: conf}}|==Configuration==
 
See the [[{{PAGENAME}}_Configuration]] page for {{#var: app}} configuration details.|}}
 
See the [[{{PAGENAME}}_Configuration]] page for {{#var: app}} configuration details.|}}

Revision as of 10:51, 20 September 2014

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

  • {{#lowercase:Stata}}

System Variables

  • HPC_{{#uppercase:Stata}}_DIR - installation directory
  • HPC_{{#uppercase: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/

PBS Script Examples

See the Stata_PBS page for Stata PBS script examples.