Agriculture Reference
In-Depth Information
7
P roGramminG S tata
Stata, for the casual user, offers a nicely implemented GUI (graphical
user interface), which makes it easy to use, but its real strength lies
in its expandability with user-written routines. It may be surprising,
but a large part of Stata is actually written and implemented with its
own built-in language. These programs can actually be viewed by the
user wishing to see how a function is implemented or to learn more
about programming. These files are stored in the Stata folder in the
Applications folder (locations may be different based on operating
systems). When your program is updated, the updates often contain
many of these programs. In addition to these official updates, it is
possible to download and use user-written programs that expand
Stata's capabilities. You may be interested in which commands are
built into the Stata program and which are written as Stata com-
mands. Stata has a command to do just that. Enter the following:
which anova
This results in the following output:
/Applications/Stata/ado/base/a/anova.ado
*! version 2.1.0 07jun2011
This output indicates the pathname to where the file is located, the
file's internal version number, and the date of its latest change. The
pathname above is how it will appear on a Macintosh and will appear
slightly different on a Windows or Unix computer. If, however, you
entered
which generate
the output would be
built-in command: generate
13 3
Search WWH ::




Custom Search