Differences between revisions 2 and 4 (spanning 2 versions)
Revision 2 as of 2023-06-08 00:36:24
Size: 762
Comment:
Revision 4 as of 2023-06-09 12:56:38
Size: 1422
Comment:
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
== Overview ==

Ado files are written in the typical syntax of the Stata programming language.

The convention is for `foo.ado` to contain a single [[Stata/Programs|program]] named `foo`.

---


Line 12: Line 22:



=== User-Submitted Programs ===

The `search` command provides an API to a database including:

 * the Stata user manual
 * FAQs and blogs hosted on www.stata.com
 * articles from the Stata Journal
 * user-submitted additions to Stata

The latter two often go hand-in-hand. Many ado files are available for discovery by the `search` command, and then can be relatively simply installed by selecting the relevent options.
Line 17: Line 40:
Many programs have been written by Stata users and posted to the Boston College Statistical Software Components (SSC) archive. These can be installed locally with the `ssc` command. The Boston College Statistical Software Components (SSC) archive is structured so that ado files can be installed automatically like packages. The `ssc` command can be used as the 'package manager'.

Stata Ado Files

Reusable programs for the Stata programming language are distributed as ado files.


Overview

Ado files are written in the typical syntax of the Stata programming language.

The convention is for foo.ado to contain a single program named foo.

---

Installing Ado Files

User-Submitted Programs

The search command provides an API to a database including:

  • the Stata user manual
  • FAQs and blogs hosted on www.stata.com
  • articles from the Stata Journal
  • user-submitted additions to Stata

The latter two often go hand-in-hand. Many ado files are available for discovery by the search command, and then can be relatively simply installed by selecting the relevent options.

SSC

The Boston College Statistical Software Components (SSC) archive is structured so that ado files can be installed automatically like packages. The ssc command can be used as the 'package manager'.

ssc install fre

By default, these Ado files are installed to C:\ado\plus. To double check this, run the sysdir command. (OLDPLACE is the location used in Stata version 6 and older. PLUS has been used since.)

To install into a different location, such as PERSONAL, try:

net set ado PERSONAL
ssc install fre


CategoryRicottone

Stata/AdoFiles (last edited 2023-06-09 12:56:51 by DominicRicottone)