Learn R Programming

reliaR (version 0.01)

pp.gompertz: Probability versus Probability (PP) plot for the Gompertz distribution

Description

The function pp.gompertz() produces a PP plot for the Gompertz based on their MLE or any other estimate. Also, a reference line can be sketched.

Usage

pp.gompertz(x, alpha.est, theta.est, main = " ", line = FALSE, ...)

Arguments

x
vector of observations
alpha.est
estimate of the parameter alpha
theta.est
estimate of the parameter theta
main
the title for the plot.
line
logical; if TRUE, a 45 degree line is sketched.
...
additional arguments to be passed to the underlying plot function.

Value

The function pp.gompertz() carries out a PP plot for the Gompertz.

References

Marshall, A. W., Olkin, I.(2007). Life Distributions: Structure of Nonparametric, Semiparametric, and Parametric Families, Springer, New York.

See Also

qq.gompertz for QQ plot and ks.gompertz function;

Examples

Run this code
## Load data sets
data(sys2)
## Maximum Likelihood(ML) Estimates of alpha & theta for the data(sys2)
## Estimates of alpha & theta using 'maxLik' package
## alpha.est = 0.00121307, theta.est = 0.00173329

pp.gompertz(sys2, 0.00121307, 0.00173329, main = " ", line = TRUE)

Run the code above in your browser using DataLab