Stata 15 help for search

[R] search -- Search Stata documentation and other resources

Syntax

search word [word ...] [, search_options]

set searchdefault {all|local|net} [, permanently]

search_options Description ------------------------------------------------------------------------- all search across both the local keyword database and the net material; the default local search using Stata's keyword database net search across materials available via Stata's net command

author search by author's name entry search by entry ID exact search across both the local keyword database and the net materials; prevents matching on abbreviations faq search the FAQs posted to the Stata website historical search entries that are of historical interest only or list an entry if any of the words typed after search are associated with the entry manual search the entries in the Stata Documentation sj search the entries in the Stata Journal and the STB -------------------------------------------------------------------------

Menu

Help > Search...

Description

search searches a keyword database and the Internet for Stata materials related to your query.

Capitalization of words following search is irrelevant, as is the inclusion or exclusion of special characters such as commas and hyphens.

set searchdefault affects the default behavior of the search command. all is the default.

search, all is the best way to search for information on a topic across all sources, including the system help, the FAQs at the Stata website, the Stata Journal, and all Stata-related Internet sources including community-contributed additions. From the results, you can click to go to a source or to install additions.

Options for search

all, the default (unless changed by set searchdefault), specifies that the search be performed across both the local keyword database and the net materials. The results of a search performed with all and no other options will be displayed in the Viewer.

local specifies that the search be performed using only Stata's keyword database. The results of a search performed with local and no other options will be displayed in the Viewer.

net specifies that the search be performed across the materials available via Stata's net command. Using search word [word ...], net is equivalent to typing net search word [word ...] (without options); see [R] net. The results of a search performed with net and no other options will be displayed in the Viewer.

author specifies that the search be performed on the basis of the author's name rather than keywords. A search with the author option is performed on the local keyword database only, and the results are displayed in the Results window.

entry specifies that the search be performed on the basis of entry IDs rather than keywords. A search with the entry option is performed on the local keyword database only, and the results are displayed in the Results window.

exact prevents matching on abbreviations. A search with the exact option is performed across both the local keyword database and the net materials, and the results are displayed in the Results window.

faq limits the search to the FAQs posted on the Stata website: http://www.stata.com. A search with the faq option is performed on the local keyword database only, and the results are displayed in the Results window.

historical adds to the search entries that are of historical interest only. By default, such entries are not listed. Past entries are classified as historical if they discuss a feature that later became an official part of Stata. Updates to historical entries will always be found, even if historical is not specified. A search with the historical option is performed on the local keyword database only, and the results are displayed in the Results window.

or specifies that an entry be listed if any of the words typed after search are associated with the entry. The default is to list the entry only if all the words specified are associated with the entry. A search with the or option is performed on the local keyword database only, and the results are displayed in the Results window.

manual limits the search to entries in the Stata Documentation; that is, the search is limited to the User's Guide and all the reference manuals. A search with the manual option is performed on the local keyword database only, and the results are displayed in the Results window.

sj limits the search to entries in the Stata Journal and its predecessor, the Stata Technical Bulletin; see [R] sj. A search with the sj option is performed on the local keyword database only, and the results are displayed in the Results window.

Option for set searchdefault

permanently specifies that, in addition to making the change right now, the searchdefault setting be remembered and become the default setting when you invoke Stata.

Examples

. search kolmogorov-smirnov equality of distribution test . search normal distribution . search linear regression . search regression . search [R], entry . search STB-16, entry historical . search Salgado-Ugarte, author

Advice on using search

See searchadvice for details.

Looking up error messages

In addition to serving as an index, search knows Stata's return codes and can offer longer explanations than the commands issuing the errors do themselves. For instance, say that you use test and,

. test ... not possible with test r(131);

131 is called the return code. To obtain more information on 131, type

. search rc 131


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index