goodfittest: An approximate goodness-of-fit test for nested and nonnested models
We introduce goodfittest, a new command for evaluating the goodness of fit of probabilistic models. The command implements the approximate Anderson–Darling and Cramér–von Mises goodness-of-fit tests proposed by Chen and Balakrishnan (1995, Journal of Quality Technology 27: 154–161), as well as the Kolmogorov–Smirnov test via Monte Carlo simulation. goodfittest extends Stata’s native capabilities for handling probabilistic models and provides applied researchers with a flexible, general-purpose tool for assessing model adequacy or selecting among competing models. It supports both built-in distributions and user-defined models, making it suitable for tasks such as selecting among alternative probabilistic distributions in environmental analyses, biological studies, or any context requiring a rigorous assessment of model fit to observed data.
Authors
- Frank S. Gomes-Silva (ORCID: https://orcid.org/0000-0002-3481-3099)
- Antonio Samuel Alves da Silva
- João Miguel J. R. da Silva
- Edgo Jackson Pinto Santiago
Institutions
- Universidade Federal Rural de Pernambuco (BR)
- Universidade de Pernambuco (BR)
Publication Details
- Journal
- The Stata Journal Promoting communications on statistics and Stata
- Published
- 2026-11-30
- DOI
- https://doi.org/10.1177/1536867x261508580
- Primary Topic
- Statistical Distribution Estimation and Applications
- Type
- article
- Field-Weighted Citation Impact
- 0.00