qq_plot: QQ-Plot of the residuals

Description Usage Arguments Details Value References Examples

View source: R/normal_assumption.R

Description

Plots studentized residuals from a linear model, against theoretical quantiles of a comparison distribution.

Usage

1
qq_plot(influence_obs)

Arguments

influence_obs

a list with following values: leverage.value, cooks.distance, studentized.residuals

Details

Draws theoretical quantile-comparison plots for variables and for studentized residuals from a linear model. A comparison line is drawn on the plot either through the quartiles of the two distributions, or by robust regression.

Value

qqplot-object

References

Fox, J. 2016 Applied Regression Analysis and Generalized Linear Models, Third Edition. Sage.

Fox, J. and Weisberg, S. 2019 An R Companion to Applied Regression, Third Edition, Sage. Atkinson, A. C. 1985 Plots, Transformations, and Regression. Oxford.

Examples

1
2
3
4
5
6
7
## Not run: 
X <- data.frame(matrix(rnorm(1000), nrow = 100))
resid <- rnorm(100)
inf_obs <- olsdiagnosticR:::influence_observation(X = X, e = error)
olsdiagnosticR:::qq_plot(influence_obs = inf_obs)

## End(Not run)

Kale-S/isnormalr documentation built on Sept. 23, 2019, 5:48 a.m.