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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

goodfittest: An approximate goodness-of-fit test for nested and nonnested models

Frank S. Gomes-Silva, Antonio Samuel Alves da Silva, João Miguel J. R. da Silva, Edgo Jackson Pinto Santiago
The Stata Journal Promoting communications on statistics and Stata
Statistical Distribution Estimation and Applications
article

goodfittest: An approximate goodness-of-fit test for nested and nonnested models

Frank S. Gomes-Silva, Antonio Samuel Alves da Silva, João Miguel J. R. da Silva, Edgo Jackson Pinto Santiago
article en

Abstract

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.

The Stata Journal Promoting communications on statistics and StataVol. 26(4)
Universidade Federal Rural de Pernambuco (BR), Universidade de Pernambuco (BR)
Statistical Distribution Estimation and Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon