qqbs {bs}R Documentation

Quantile versus quantile (QQ) plot for the the BSD

Description

The function qqbs() produces a QQ plot for the BSD based on their MLE. Also, a line going through the first and the third quartile can be sketched.

Usage

qqbs(x, line = FALSE, xlab = "Empirical quantiles", ylab = "Theoretical quantiles")

Arguments

x Vector of observations.
line Logical; if TRUE, a line going by the first and third quartile is sketched.
xlab A title for the x axis.
ylab A title for the y axis.

Value

The function qqbs() carries out a QQ plot for the BSD.

Author(s)

Víctor Leiva <victor.leiva@uv.cl>, Hugo Hernández <hugo.hernande@msn.com>, and Marco Riquelme <mriquelm@ucm.cl>.

References

Birnbaum, Z. W. and Saunders, S. C. (1969). A new family of life distributions. J. Appl. Probab. 6(2): 637-652.

Examples

## Load data sets
data(psi31)
sample<-psi31

## QQ plot for psi31
qqbs(sample,line=TRUE)

## PP plot for psi31
ppbs(sample,line=TRUE)

[Package bs version 1.0 Index]