gofmalm: Goodness-of-Fit Tests for Type-II Censored Samples via Malmquist Transformation

gofmalm provides goodness-of-fit (GOF) tests for arbitrary user-specified continuous parametric distributions under Type-II right- or left-censoring.

Features

Installation

You can install gofmalm from the source package tarball:

install.packages("gofmalm_0.1.0.tar.gz", repos = NULL, type = "source")

Quick Example

library(gofmalm)

# Example 1: Testing Uniform(0,1) with r = 5, n = 10 (simple hypothesis)
data_unif <- c(0.03, 0.06, 0.10, 0.11, 0.13)
res1 <- gof_censored(
  data = data_unif,
  n = 10,
  pdf = dunif,
  cdf = punif,
  sf = function(x, p) 1 - punif(x),
  estimate = FALSE,
  pvalue_method = "distribution_free",
  nsim = 1000,
  seed = 123
)
print(res1)

References