The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

ebrahim.gof: Goodness-of-Fit and Calibration Tests for Logistic Regression

Provides a unified battery of goodness-of-fit and calibration tests for binary logistic regression, runnable in a single call via 'run.all.gof()'. Around twenty-five tests spanning five decades of literature are aggregated and grouped by the departure each is built to detect: global and standardized statistics, partition tests such as Hosmer-Lemeshow, directed and covariate-space tests, smoothing and resampling tests, and calibration tests. Each is obtained from its own package where installed and attributed to its authors. The package also implements the author's own procedures for sparse data, where the Hosmer-Lemeshow test loses power: the omnibus Ebrahim-Farrington test 'ef.gof()', the directed 'edge.gof()' and its covariate-space variant 'cdef.gof()', the Cauchy-combination ensemble 'edges.gof()', 'DeepGOF-1' (a pretrained convolutional statistic whose level comes from the analyst's own parametric bootstrap rather than from the network), and 'legoft()' (a frozen-weight combination whose weights are fixed offline and ship frozen, so two analysts obtain the same p-value). For penalized (ridge) logistic regression, where shrinkage biases the fitted probabilities and invalidates the usual chi-squared references, the corrected statistics are referred either to a prepivoting bootstrap by 'shrink.gof()' or to a closed-form reference by 'calm.gof()', which needs a single fit and is validated for designs in which the number of predictors is a sizeable fraction of the sample size. For a model fitted elsewhere, 'run.all.external()' tests frozen predictions on validation data, and 'edge.stream()' updates the 'EDGE' test as validation records arrive. 'localize.gof()' and 'localize.external()' name which part of the model is wrong (the intercept, the slope, the link or the covariates) with familywise error control. For comparison, the projection test of Liu et al. is implemented as 'projection.gof()' and a fast implementation of the adaptive-partition test 'BAGofT' as 'bagoft.fast()'. For more details see Hosmer (1980) <doi:10.1080/03610928008827941> and Farrington (1996) <doi:10.1111/j.2517-6161.1996.tb02086.x>.

Version: 2.10.0
Depends: R (≥ 3.5.0)
Imports: CompQuadForm, graphics, grDevices, parallel, stats
Suggests: testthat (≥ 3.0.0), knitr, rmarkdown, ResourceSelection, ggplot2, statmod, mgcv, BAGofT, randomForest, dcov, givitiR, callr, TH.data
Published: 2026-10-11
DOI: 10.32614/CRAN.package.ebrahim.gof
Author: Ebrahim Khaled Ebrahim ORCID iD [aut, cre], Jiawei Zhang [ctb, cph] (author of the BAGofT package code adapted in R/bagoft_fast.R), Jie Ding [ctb, cph] (author of the BAGofT package code adapted in R/bagoft_fast.R), Yuhong Yang [ctb, cph] (author of the BAGofT package code adapted in R/bagoft_fast.R)
Maintainer: Ebrahim Khaled Ebrahim <ebrahimkhaled at alexu.edu.eg>
BugReports: https://github.com/ebrahimkhaled/ebrahim.gof/issues
License: GPL-3
URL: https://ebrahimkhaled.github.io/ebrahim.gof/, https://github.com/ebrahimkhaled/ebrahim.gof
NeedsCompilation: no
Citation: ebrahim.gof citation info
Materials: README, NEWS
CRAN checks: ebrahim.gof results

Documentation:

Reference manual: ebrahim.gof.html , ebrahim.gof.pdf
Vignettes: Introduction to the Ebrahim-Farrington Goodness-of-Fit Test (source, R code)
A goodness-of-fit and calibration toolbox for logistic regression (source, R code)
Further examples: grouped data, the EF read-out, monitoring and ridge fits (source, R code)

Downloads:

Package source: ebrahim.gof_2.10.0.tar.gz
Windows binaries: r-devel: ebrahim.gof_2.8.0.zip, r-release: ebrahim.gof_2.8.0.zip, r-oldrel: ebrahim.gof_2.10.0.zip
macOS binaries: r-release (arm64): ebrahim.gof_2.10.0.tgz, r-oldrel (arm64): ebrahim.gof_2.10.0.tgz, r-release (x86_64): ebrahim.gof_2.10.0.tgz, r-oldrel (x86_64): ebrahim.gof_2.10.0.tgz
Old sources: ebrahim.gof archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=ebrahim.gof to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.