IDEAS home Printed from https://ideas.repec.org/p/boc/scon21/2.html
   My bibliography  Save this paper

distcomp: Comparing distributions

Author

Listed:
  • David Kaplan

    (University of Missouri)

Abstract

I developed the distcomp command to help Stata users compare distributions using recent methodology from the econometrics literature (Goldman and Kaplan 2018; https://doi.org/10.1016/j.jeconom.2018.04.003). Goodness-of-fit tests like ksmirnov simply test the null hypothesis that two distributions are identical; the test can only reject or accept. Providing more information, distcomp identifies specific intervals on which the distributions' difference is statistically significant, while still controlling the false-positive rate appropriately. A secondary benefit of distcomp is its improved power in the tails compared with ksmirnov.

Suggested Citation

  • David Kaplan, 2021. "distcomp: Comparing distributions," 2021 Stata Conference 2, Stata Users Group.
  • Handle: RePEc:boc:scon21:2
    as

    Download full text from publisher

    File URL: http://fmwww.bc.edu/repec/scon2021/US21_Kaplan.zip
    Download Restriction: no
    ---><---

    Other versions of this item:

    References listed on IDEAS

    as
    1. Goldman, Matt & Kaplan, David M., 2018. "Comparing distributions by multiple testing across quantiles or CDF values," Journal of Econometrics, Elsevier, vol. 206(1), pages 143-166.
    2. Atkinson, A B, 1987. "On the Measurement of Poverty," Econometrica, Econometric Society, vol. 55(4), pages 749-764, July.
    3. Uri Gneezy & John A List, 2006. "Putting Behavioral Economics to Work: Testing for Gift Exchange in Labor Markets Using Field Experiments," Econometrica, Econometric Society, vol. 74(5), pages 1365-1384, September.
    4. Goldman, Matt & Kaplan, David M., 2018. "Comparing distributions by multiple testing across quantiles or CDF values," Journal of Econometrics, Elsevier, vol. 206(1), pages 143-166.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. David M. Kaplan, 2024. "Inference on Consensus Ranking of Distributions," Journal of Business & Economic Statistics, Taylor & Francis Journals, vol. 42(3), pages 839-850, July.
    2. Wellhausen, Rachel L, 2023. "Waste Not, Want Not: Tariffs as Environmental Protection," Institute on Global Conflict and Cooperation, Working Paper Series qt40m4179x, Institute on Global Conflict and Cooperation, University of California.
    3. Ayllón, Sara, 2022. "Online teaching and gender bias," Economics of Education Review, Elsevier, vol. 89(C).
    4. Getahun, Tigabu D. & Fetene, Gebeyehu M. & Baumüller, Heike & Kubik, Zaneta, 2024. "Gender gaps in wages and nonmonetary benefits: Evidence from Ethiopia’s manufacturing sector," Discussion Papers 344126, University of Bonn, Center for Development Research (ZEF).
    5. Millemaci, Emanuele & Monteforte, Fabio & Temple, Jonathan R. W., 2023. "Have autocrats governed for the long term?," SocArXiv w8khb, Center for Open Science.
    6. Heyman, Fredrik & Norbäck, Pehr-Johan & Persson, Lars, 2017. "Talent, Career Choice and Competition: The Gender Wage Gap at the Top," Working Paper Series 1169, Research Institute of Industrial Economics, revised 06 Mar 2023.
    7. Getahun, Tigabu D. & Fetene, Gebeyehu M. & Baumüller, Heike & Kubik, Zaneta, 2024. "Exploring the relationship between job quality and firm productivity in the manufacturing sector: Panel data evidence from Ethiopia," Discussion Papers 344125, University of Bonn, Center for Development Research (ZEF).
    8. Fetene, Gebeyehu Manie & Balew, Solomon & Abro, Zewdu & Kassie, Menale & Tefera, Tadele, 2021. "Push-Pull Technology As a Climate-Smart Integrated Pest Management Strategy in Southern Ethiopia," 2021 Conference, August 17-31, 2021, Virtual 315246, International Association of Agricultural Economists.
    9. Zewdu Abro & Gebeyehu Manie Fetene & Menale Kassie & Tigist Mekonnen Melesse, 2023. "Socioeconomic burden of trypanosomiasis: Evidence from crop and livestock production in Ethiopia," Journal of Agricultural Economics, Wiley Blackwell, vol. 74(3), pages 785-799, September.
    10. Stefano Boscolo, 2019. "Quantifying the Redistributive Effect of the Erosion of the Italian Personal Income Tax Base: A Microsimulation Exercise," ECONOMIA PUBBLICA, FrancoAngeli Editore, vol. 2019(2), pages 39-80.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Matt Goldman & David M. Kaplan, 2018. "Non‐parametric inference on (conditional) quantile differences and interquantile ranges, using L‐statistics," Econometrics Journal, Royal Economic Society, vol. 21(2), pages 136-169, June.
    2. Chung, EunYi & Olivares, Mauricio, 2021. "Permutation test for heterogeneous treatment effects with a nuisance parameter," Journal of Econometrics, Elsevier, vol. 225(2), pages 148-174.
    3. David M. Kaplan & Matt Goldman, 2015. "Nonparametric inference on conditional quantile differences and linear combinations, using L-statistics," Working Papers 1503, Department of Economics, University of Missouri.
    4. Victor Gay, 2023. "Culture: An Empirical Investigation of Beliefs, Work, and Fertility. A Verification and Reproduction of Fernández and Fogli (2009)," Post-Print hal-04194417, HAL.
    5. Goldman, Matt & Kaplan, David M., 2017. "Fractional order statistic approximation for nonparametric conditional quantile inference," Journal of Econometrics, Elsevier, vol. 196(2), pages 331-346.
    6. Heyman, Fredrik & Norbäck, Pehr-Johan & Persson, Lars, 2017. "Talent, Career Choice and Competition: The Gender Wage Gap at the Top," Working Paper Series 1169, Research Institute of Industrial Economics, revised 06 Mar 2023.
    7. Blemings, Benjamin T. & Bock, Margaret & Scarcioffolo, Alexandre, 2022. "Hoggin' the Road: Negative Road Externalities of Pork Slaughterhouses," 2022 Annual Meeting, July 31-August 2, Anaheim, California 322466, Agricultural and Applied Economics Association.
    8. Melo, Grace & Palma, Marco A. & Ribera, Luis A., 2024. "Are experts overoptimistic about the success of food market labeling information?," 2024 Annual Meeting, July 28-30, New Orleans, LA 343870, Agricultural and Applied Economics Association.
    9. Gay, Victor, 2023. "Culture: An Empirical Investigation of Beliefs, Work, and Fertility. A Verification and Reproduction of Fernández and Fogli (American Economic Journal: Macroeconomics, 2009)," Journal of Comments and Replications in Economics (JCRE), ZBW - Leibniz Information Centre for Economics, vol. 2(2023-2), pages 1-15.
    10. David M. Kaplan, 2024. "Inference on Consensus Ranking of Distributions," Journal of Business & Economic Statistics, Taylor & Francis Journals, vol. 42(3), pages 839-850, July.
    11. Huang, Wei & Li, Teng & Pan, Yinghao & Ren, Jinyang, 2023. "Teacher characteristics and student performance: Evidence from random teacher-student assignments in China," Journal of Economic Behavior & Organization, Elsevier, vol. 214(C), pages 747-781.
    12. Caetano, Carolina & Caetano, Gregorio & Nielsen, Eric, 2024. "Are children spending too much time on enrichment activities?," Economics of Education Review, Elsevier, vol. 98(C).
    13. Xavier Cirera & Diego A. Comin & Marcio Cruz & Kyung Min Lee, 2020. "Anatomy of Technology in the Firm," NBER Working Papers 28080, National Bureau of Economic Research, Inc.
    14. Wang, Duoyu & Cleary, Rebecca, 2024. "The Effect of SNAP on Black Households' Nutritional Quality of Food Purchases," 2024 Annual Meeting, July 28-30, New Orleans, LA 343960, Agricultural and Applied Economics Association.
    15. John Mullahy, 2020. "Discovering Treatment Effectiveness via Median Treatment Effects—Applications to COVID-19 Clinical Trials," NBER Working Papers 27895, National Bureau of Economic Research, Inc.
    16. Anastasios Evgenidis & Apostolos Fasianos, 2021. "Unconventional Monetary Policy and Wealth Inequalities in Great Britain," Oxford Bulletin of Economics and Statistics, Department of Economics, University of Oxford, vol. 83(1), pages 115-175, February.
    17. David M. Kaplan, 2015. "Bayesian and frequentist tests of sign equality and other nonlinear inequalities," Working Papers 1516, Department of Economics, University of Missouri.
    18. Klenio Barbosa & Dakshina De Silva & Liyu Yang & Hisayuki Yoshimoto, 2020. "Bond Losses and Systemic Risk," Working Papers 288072615, Lancaster University Management School, Economics Department.
    19. John Mullahy, 2021. "Discovering treatment effectiveness via median treatment effects—Applications to COVID‐19 clinical trials," Health Economics, John Wiley & Sons, Ltd., vol. 30(5), pages 1050-1069, May.
    20. Wei Zhao & David M. Kaplan, 2024. "Conditions for extrapolating differences in consumption to differences in welfare," Economic Inquiry, Western Economic Association International, vol. 62(3), pages 1090-1104, July.

    More about this item

    JEL classification:

    • C87 - Mathematical and Quantitative Methods - - Data Collection and Data Estimation Methodology; Computer Programs - - - Econometric Software

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:boc:scon21:2. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F Baum (email available below). General contact details of provider: https://edirc.repec.org/data/stataea.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.