A bend point analysis tool for the adequate truncation of city rank-size distributions
This paper introduces a simple Stata tool designed to identify the transition point between the upper Pareto tail and the lower lognormal regime in city rank-size distributions. Building on the Gabaix and Ibragimov modification to reduce estimation bias, the method locates the "bend point" by finding the largest positive deviation between observed log-ranks and a baseline chord connecting the first and last observations. Proofs and simulations demonstrate that this maximum residual theoretically occurs precisely where the distribution shifts from a linear power law to a concave lognormal curve. To address real-world empirical complexities such as primate city distortions or continuous overlaps, the tool pairs this bend point detection with iterative truncation and Kolmogorov-Smirnov goodness-of-fit testing to isolate a pure Pareto tail.