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.
Cpy, Cp, Cpk,
Cpu, Cpl, Cpm, Cpmk,
CpTk, Spmk, Cpc,
CNpk, CNpmc, CNpmkc,
Cp_uv).# Install from source package archive (.tar.gz)
install.packages("gpciLindApproxProgII_0.1.0.tar.gz", repos = NULL, type = "source")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)