Affiliation:
1. Department of Geography Durham University Durham, UK
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.
Subject
Mathematics (miscellaneous)
Cited by
7 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Speaking Stata: The joy of sets: Graphical alternatives to Euler and Venn diagrams;The Stata Journal: Promoting communications on statistics and Stata;2024-06
2. Stata tip 152: if and if: When to use the if qualifier and when to use the if command;The Stata Journal: Promoting communications on statistics and Stata;2023-06
3. Stata tip 151: Puzzling out some logical operators;The Stata Journal: Promoting communications on statistics and Stata;2023-03
4. Stata tip 148: Searching for words within strings;The Stata Journal: Promoting communications on statistics and Stata;2022-12
5. Speaking Stata: The largest five—A tale of tail values;The Stata Journal: Promoting communications on statistics and Stata;2022-06