Package: ebrahim.gof
Type: Package
Title: Ebrahim-Farrington Goodness-of-Fit Test for Logistic Regression
Version: 2.0.0
Date: 2026-06-10
Authors@R: person("Ebrahim", "Khaled Ebrahim",
                  email = "ebrahimkhaled@alexu.edu.eg",
                  role = c("aut", "cre"),
                  comment = c(ORCID = "0009-0006-7839-8778"))
Maintainer: Ebrahim Khaled Ebrahim <ebrahimkhaled@alexu.edu.eg>
Description: Implements the Ebrahim-Farrington goodness-of-fit test for logistic 
    regression models, particularly effective for sparse data and binary outcomes. 
    This test provides an improved alternative to the traditional Hosmer-Lemeshow 
    test by using a modified Pearson chi-square statistic with data-dependent 
    grouping. The test is based on Farrington (1996) theoretical framework but 
    simplified for practical implementation with binary data. Includes functions 
    for both the original Farrington test (for grouped data) and the new
    Ebrahim-Farrington test (for binary data with automatic grouping), the
    Directed Ebrahim-Farrington (DEF) test that targets calibration-shape
    departures, and an ensemble that combines the DEF bases via the Cauchy
    combination test. For more details see Hosmer (1980) <doi:10.1080/03610928008827941> and Farrington (1996) <doi:10.1111/j.2517-6161.1996.tb02086.x>.
License: GPL-3
URL: https://github.com/ebrahimkhaled/ebrahim.gof
BugReports: https://github.com/ebrahimkhaled/ebrahim.gof/issues
Depends: R (>= 3.5.0)
Imports: stats
Suggests: testthat (>= 3.0.0), knitr, rmarkdown, ResourceSelection,
        ggplot2, CompQuadForm, statmod, mgcv, BAGofT
Encoding: UTF-8
RoxygenNote: 7.3.2
VignetteBuilder: knitr
NeedsCompilation: no
Packaged: 2026-06-11 12:31:25 UTC; ebrah
Author: Ebrahim Khaled Ebrahim [aut, cre] (ORCID:
    <https://orcid.org/0009-0006-7839-8778>)
Repository: CRAN
Date/Publication: 2026-06-12 10:20:02 UTC
