plot_qq: Plot QQ

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/ares.r

Description

Plot a quantile-quantile graph of the residuals

Usage

1
plot_qq(x, type = "deviance", new = TRUE, ...)

Arguments

x

a model fitted by fit_core

type

a quoted string indicating the type of residuals to extract. Default is "deviance". See get_residuals

new

if TRUE a new graph window is opened

...

further options to qqnorm

Details

This function simply interfaces the usual quantile-quantile plot and line of the residuals extracted from x using a single call.

Value

This function does not return a value.

Author(s)

Washington Junger wjunger@ims.uerj.br and Antonio Ponce de Leon ponce@ims.uerj.br

References

McGullagh, P., Nelder, J. A. (1989) Generalized linear models. Chapman and Hall.

Hastie, T., Tibshirani, R. (1990) Generalized additive models. 2 ed. Chapman and Hall.

Cook, R. D., Weisberg, S. (1982) Residuals and Influence in Regression. Chapman and Hall.

Atkinson, A.C. (1985) Plots, Transformations and Regression. Oxford University Press.

Pierce, D. A., Schafer, D. W. (1986) Residuals in generalized linear models. Journal of the American Statistical Association, 81(396),977–986.

See Also

fit_core,get_residuals

Examples

1
2
3
4
5
data(admrio)
setup(admrio,"date")
f <- resp5~s(time)+weekdays+s(tmpmax)+s(humid)
m <- fit_core(f)
plot_qq(m)

wjunger/ares documentation built on Dec. 23, 2021, 5:17 p.m.