and the University of Arizona for helpful comments. The views expressed herein are those of the authors and do not necessarily reflect the views of the National Bureau of Economic Research.NBER working papers are circulated for discussion and comment purposes. They have not been peer-reviewed or been subject to the review by the NBER Board of Directors that accompanies official NBER publications.
Often, observed income and survival data are incomplete because of left- or right-censoring or left- or right-truncation. Measuring inequality (for instance, by the Gini index of concentration) from incomplete data like these will produce biased results. We describe the package giniinc, which contains three independent commands to estimate the Gini concentration index under different conditions. First, survgini computes a test statistic for comparing two (survival) distributions based on the nonparametric estimation of the restricted Gini index for right-censored data, using both asymptotic and permutation inference. Second, survbound computes nonparametric bounds for the unrestricted Gini index from censored data. Finally, survlsl implements maximum likelihood estimation for three commonly used parametric models to estimate the unrestricted Gini index, both from censored and truncated data. We briefly discuss the methods, describe the package, and illustrate its use through simulated data and examples from an oncology and a historical income study.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.