gof: Goodness-of-Fit Statistics for RGA Objects

View source: R/gof.R

gofR Documentation

Goodness-of-Fit Statistics for RGA Objects

Description

Computes numerical goodness-of-fit statistics for a fitted Reliability Growth Analysis (RGA) model using the time-transformation approach. For a Crow-AMSAA (Power Law NHPP) model with parameters \beta and \lambda, the transformed values W_i = (t_i / t_n)^{\beta} should follow a Uniform(0, 1) distribution if the model fits. The Cramér-von Mises and Kolmogorov-Smirnov statistics are computed against this null distribution.

Usage

gof(x, ...)

## Default S3 method:
gof(x, ...)

## S3 method for class 'rga'
gof(x, ...)

Arguments

x

An object for which a goodness-of-fit method is defined.

...

Additional arguments passed to methods.

Value

An object of class gof.

See Also

Other goodness-of-fit: ppplot.rga(), print.gof(), qqplot.rga()

Examples

times <- c(5, 10, 15, 20, 25)
failures <- c(1, 2, 1, 3, 2)
fit <- rga(times, failures)
g <- gof(fit)
print(g)

ReliaGrowR documentation built on May 22, 2026, 5:07 p.m.