Goodness-of-Fit Tests for Complete, Progressively Type-II, Type-I Hybrid, and Type-II Hybrid Censored Data
Overview
Provides goodness-of-fit tests for lifetime data collected under complete sampling, progressive Type-II censoring, and Type-I/Type-II hybrid censoring schemes. Users supply the observed (censored) data and the assumed probability density/mass function, cumulative distribution function, or survival function of the target model, and the package returns the corresponding test statistic together with an asymptotic or Monte Carlo p-value. Implements the spacings-based exponentiality test of Balakrishnan, Ng and Kannan (2002, in "Goodness-of-Fit Tests and Model Validity", Birkhauser, pp. 89-111) and its location-scale generalization Balakrishnan, Ng and Kannan (2004) doi:10.1109/TR.2004.833317, the power comparison and Kaplan-Meier based tests of Doering and Cramer (2019) doi:10.1080/00949655.2019.1648468, the Kolmogorov-Smirnov type tests for hybrid censored data of Banerjee and Pradhan (2018) doi:10.1080/03610926.2016.1205616, and follows the unified treatment of hybrid censoring schemes reviewed in Balakrishnan and Kundu (2013) doi:10.1016/j.csda.2012.03.025 and in Cramer and Balakrishnan (2023, "Hybrid Censoring Know-How", Chapter 11) doi:10.1016/B978-0-12-398387-9.00019-2.
- Initial release of
gofPHCS. - Implements complete-sample goodness-of-fit tests: Kolmogorov-Smirnov (
KS), Cramér-von Mises (CvM), Anderson-Darling (AD). - Implements progressive Type-II censoring tests: Balakrishnan, Ng & Kannan (2002b) spacings test (
T), Balakrishnan et al. (2004b) location-scale spacings test (genT), CvM-type on transformed spacings (A2_prog), Shapiro-Wilk type test (W2_prog), Wang (2008) log-spacings statistic (Tstar), Döring & Cramer (2019) Kaplan-Meier survival test (KMprog). - Implements hybrid censoring tests: Banerjee & Pradhan (2018) Kolmogorov-Smirnov tests (
KSI,KSII,KSI_HCS,KSII_HCS). - Includes unified distribution adapter (
make_distribution), censored data container (cens_data), and random sample generator (rcens).
From NEWS.md in the release
Install
Health
- OK13 OKNow
- OK7 OK2026-08-05
Documentation
- Help pages
- 7 (1 internal)includes a package overview page
- Examples that run
- 100%4 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 90%
- Return-value docs
- 100%
- Help pages citing references
- 71% with a bibliography file
Downloads
Dependencies
Installing gofPHCS adds 1 package (0 with compiled code, 102 KB of source tarballs). Heaviest: withr 102 KB.
Code & Tests
Datasets
People & History
- 0.1.0Latest2026-08-04 · current release
- RR 4.6.0 released · 2026-04-24
Package metadata
- First published
- 2026-08-04
- Total releases
- 1 / 1 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 0.4 KB / 2 files
- Download size
- 26 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("gofPHCS")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.