Learn R Programming

mixtox (version 1.3)

qq4res: Residual Normal QQ Plot

Description

Produces a side-by-side QQ plot of the residuals against standard normal quantiles.

Usage

qq4res(res, main = '', xlabel = 'Theoretical Quantiles', ylabel = 'Residuals', lgd = NULL)

Arguments

res
residuals.
main
title
xlabel, ylabel
plot labels.
lgd
legend.

Details

The empirical quantiles are plotted against the quantiles of a standard normal distribution. If the residuals are from a normal distribution with mean 0, the points tend to fall along the reference line that has an intercept of 0 and a slope equal to the estimated standard deviation.

Examples

Run this code
## example 1
# 
x <- antibiotox$PAR$x
expr <- antibiotox$PAR$y
f <- curveFit(x, expr, eq = 'Logit', param = c(26, 4), effv = c(0.05, 0.5))
qq4res(f$res)

Run the code above in your browser using DataLab