The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
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[@]metanet.ch.

Gofpt2: Generalized Goodness-of-Fit Test for Censored Data

License: GPL v3

Implements a generalized goodness-of-fit test based on spacings for general progressive Type-II censored data. The test statistic is based on the methodology proposed by Qin et al. (2022) and extends the foundational work of Balakrishnan et al. (2003).

Users can test whether their observed censored lifetime data follows any specified continuous distribution by providing custom probability density function (pdf_func), cumulative distribution function (cdf_func), and survival function (survival_func). The package supports both normal approximation and Monte Carlo simulation approaches for computing \(p\)-values and critical values.

Features

Installation

You can install the development version of Gofpt2 from GitHub with:

# install.packages("devtools")
devtools::install_github("shikhartyagi/Gofpt2")

Quick Example

library(Gofpt2)

# Define censoring scheme: n = 19, m = 11, r = 2
scheme <- list(
  n = 19,
  m = 11,
  r = 2,
  R = c(0, 0, 2, 0, 0, 2, 0, 0, 1)
)

# Insulating fluid failure data from Example 6.1 (Qin et al., 2022)
obs_data <- c(0.96, 1.31, 3.16, 4.15, 4.67, 7.35, 8.01, 8.27, 32.52, 33.91, 36.71)

# Run goodness-of-fit test against exponential distribution
res <- gof_test_censored(
  data = obs_data,
  censoring_scheme = scheme,
  method = "normal"
)

# Display results
print(res)
summary(res)
plot(res)

References

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.