Learn R Programming

reliaR (version 0.01)

qq.gompertz: Quantile versus quantile (QQ) plot for the Gompertz distribution

Description

The function qq.gompertz() produces a QQ plot for the Gompertz based on their MLE or any other estimate. Also, a line going through the first and the third quartile can be sketched.

Usage

qq.gompertz(x, alpha.est, theta.est, main = " ", line.qt = 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.qt
logical; if TRUE, a line going by the first and third quartile is sketched.
...
additional arguments to be passed to the underlying plot function.

Value

The function qq.gompertz() carries out a QQ 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

pp.gompertz for PP 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

qq.gompertz(sys2, 0.00121307, 0.00173329, main = " ", line.qt = FALSE)

Run the code above in your browser using DataLab