Description Usage Arguments Details Value References Examples
View source: R/normal_assumption.R
Plots studentized residuals from a linear model, against theoretical quantiles of a comparison distribution.
1 | qq_plot(influence_obs)
|
influence_obs |
a list with following values: leverage.value, cooks.distance, studentized.residuals |
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.
qqplot-object
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.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.