Learn R Programming

ReliaGrowR (version 0.3.2)

ppplot.rga: P-P Plot for RGA Objects

Description

This function creates a P-P plot for a fitted Reliability Growth Analysis (RGA) model. Currently only supports the Crow-AMSAA model. A P-P plot compares the empirical cumulative distribution function (CDF) to the theoretical CDF specified by the model. If the model fits well, the points should fall approximately along a straight line.

Usage

ppplot.rga(x, main = "P-P Plot", ...)

Value

A P-P plot comparing empirical and theoretical CDFs.

Arguments

x

An object of class rga.

main

Title of the plot.

...

Additional arguments passed to plot().

See Also

Other goodness-of-fit: qqplot.rga()

Examples

Run this code
times <- c(5, 10, 15, 20, 25)
failures <- c(1, 2, 1, 3, 2)
fit <- rga(times, failures)
ppplot.rga(fit)

Run the code above in your browser using DataLab