gpciLindApproxProgII: Lindley Approximation for Generalized Process Capability Indices under Progressive Type-II Censoring

Overview

The gpciLindApproxProgII package implements Bayesian estimation and Generalized Process Capability Indices (GPCIs) evaluation under Progressive Type-II Censoring using Lindley’s 3rd-order approximation method.

Features

Installation

# Install from source package archive (.tar.gz)
install.packages("gpciLindApproxProgII_0.1.0.tar.gz", repos = NULL, type = "source")

Quick Example

library(gpciLindApproxProgII)

# Observed failure times and progressive removal counts
x <- c(0.5, 1.2, 2.1, 3.4, 4.8)
r <- c(1, 0, 2, 0, 1)

# Fit model using Lindley approximation and chain generator
fit <- lindley_prog_gpci(
  x = x,
  r_removals = r,
  distribution = dist_weibull(),
  USL = 6,
  LSL = 0,
  chain_length = 500,
  burn_in = 100,
  thinning = 1,
  B = 100
)

# Print and summary
print(fit)
summary(fit)

# Plot posterior distributions and trace plots
plot(fit)