help for lookandVersion 1.1, 4Apr2012

Search for variables whose names or labels contain all the listed character strings

lookand charstring
[charstring charstring charstring]
[
,
fullnames
simple
short
sum
detail
]

Description

lookand is an extension of STATA's lookfor command.
Stata's program lookfor finds the variables in memory that
contain any of the user-specified list of character strings.
This program instead lists variables that contain
all the character strings.

Thus, if the list of variables containing
a given character string is defined as a mathematical "set,"
think of Stata's lookfor command as identifying and listing
the variables in the "union" of
the sets associated with each user-specified character string.
This program lookand on the other hand identifies and lists the
variables that constitute the "intersection" of these sets.

lookand uses Stata's describe command to list the
variables that fit the user's criteria.
Optionally, lookand will execute the describe command
with either the fullnames or the short option.

Optionally lookand will also summarize the selected variables,
with or without the detail option.

This command saves in r(varlist) a list of the full variables names
it has identified as fulfilling the search conditions.

Options

See the above description.

Author

Mead Over,
Center for Global Development, Washington, DC 20036 USA. Email:
MOver@CGDev.Org if you observe any
problems.

References

lookfor, describe, summarize