Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | "David Radwin" <dradwin@mprinc.com> |
To | <statalist@hsphsun2.harvard.edu> |
Subject | RE: st: interesting reference |
Date | Fri, 1 Oct 2010 09:05:35 -0700 (PDT) |
Stas Kolenikov wrote: > Any additional comments on my question about -confirm-ations and > -assert-ions? I use -assert- occasionally in do-files, such as -assert _merge==3- as a check that I am merging files correctly (or merging the correct files). The other command of this nature that is more often helpful is -isid-, which checks that varlist (typically a single variable that supposedly identifies each individual) (1) is unique over all observations (that is, no duplicates) and (2) is never missing. This step can be helpful when you first examine a dataset constructed by someone else. Similar to -assert-, -isid- continues silently if everything if both conditions are met but returns an informative error message otherwise. David -- David Radwin Research Associate MPR Associates, Inc. 2150 Shattuck Ave., Suite 800 Berkeley, CA 94704 Phone: 510-849-4942 Fax: 510-849-0794 www.mprinc.com * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/