Affiliation:
1. Department of Geography, Durham University, Durham, U.K.
Abstract
How do you work with the largest five, or smallest five, or any other fixed number of values in a tail of a distribution? In this column, I give examples of problems and code for basic calculations as a prelude to graphics, tables, and more detailed analysis. The main illustration is analysis of concentration among firms or companies, with wider discussion mentioning hydrology, climatology, cryptography, and ecology. The examples allow a tutorial covering sorting and ranking and using if and in to select observations, by: as a framework for groupwise calculations, indicator variables as a mode of selection, and egen as a Swiss Army knife with many handy functions.
Subject
Mathematics (miscellaneous)
Cited by
2 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Stata tip 156: Concentration and diversity measures using egen;The Stata Journal: Promoting communications on statistics and Stata;2024-09
2. Browse and cite Stata manuals easily: The wwwhelp command;The Stata Journal: Promoting communications on statistics and Stata;2024-03