robcbi (version 1.1-2)

QQline: Add a theoretical QQ-line in a plot

Description

Adds a QQ-line for the values in x in the current plot.

Usage

QQline(x, ...)

Arguments

x

The sample for QQ-line

Graphical parameters

Value

The intercept and the slope of the QQ-line are returned

References

Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole.

Examples

Run this code
# NOT RUN {
library(robcbi)
data(Finney)
Vol  <- Finney$Vol; Rate <- Finney$Rate; Resp <- Finney$Resp
lVol <-log(Vol); lRate <- log(Rate)
z.cub <- glm(Resp~lVol+lRate,family=binomial,method="cubinf", ufact=3.2)
x    <- residuals(z.cub, type="deviance")
# }
# NOT RUN {
qqnorm(x, ylab = "Deviance Residuals")
QQline(x, lty = 2)
# }

Run the code above in your browser using DataLab