Speaking Stata: Truth, falsity, indication, and negation
Nicholas Cox
Stata Journal, 2016, vol. 16, issue 1, 229-236
Abstract:
Many problems in Stata call for selection of observations according to true or false conditions, indicator variables flagging the same, groupwise calculations, or a prearranged sort order. The example of finding the first (earliest) and last nonmissing value in panel or longitudinal data is used to explain and explore these devices and how they may be used together. Negating an indicator variable has the special virtue that selected observations may be sorted easily to the top of the dataset. Copyright 2016 by StataCorp LP.
Keywords: true or false; logical; Boolean; indicator variable; dummy variable; sort; by; panel data; longitudinal data; programming; data management (search for similar items in EconPapers)
Date: 2016
Note: to access software from within Stata, net describe http://www.stata-journal.com/software/sj16-1/dm0087/
References: Add references at CitEc
Citations:
Downloads: (external link)
http://www.stata-journal.com/article.html?article=dm0087 link to article purchase
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:tsj:stataj:v:16:y:2016:i:1:p:229-236
Ordering information: This journal article can be ordered from
http://www.stata-journal.com/subscription.html
Access Statistics for this article
Stata Journal is currently edited by Nicholas J. Cox and Stephen P. Jenkins
More articles in Stata Journal from StataCorp LLC
Bibliographic data for series maintained by Christopher F. Baum () and Lisa Gilmore ().