Thanks to Kit Baum, a new package called -marktouse- is available from
the SSC Archive.
-marktouse- creates a 0/1 marker variable recording which observations
are to be used in an analysis. This is useful if you want to ensure
that all commands use the same observations. The procedure is to
create the marker variable at the beginning of an analysis and then
include -if <markvar>- in all subsequent commands (where <markvar>
stands for the name of the marker variable).
While marking the observations to be used is a standard task in
programming (see -help marksample-), there exists no handy command for
this in do-files or in interactive mode (see Jann, in press).
-marktouse- fills this gap.
To install the package, type
. ssc install marktouse
ben
Jann, B. (in press). Stata tip 44: Get a handle on your sample. The
Stata Journal 7(2).
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/