View source: R/iNZightQQplot.R
iNZightQQplot | R Documentation |
Produces a sample of QQ-plots based on the fitted values, overlaid by a QQ-plot of the original data.
iNZightQQplot(x, n = 5, env = parent.frame())
x |
an |
n |
the number of sampled QQ plots to produce beneath the QQ plot of
|
env |
environment for finding data to bootstrap |
Multiple bootstrap models are generated from the fitted values of
the model, each with different random normal errors with standard
error equal to the estimated residual standard error from the
original model. These are plotted, and then overlaid by the QQ plot
from the original data.
This plot can be used to assess the assumption of normality in the
residuals for a linear regression model.
No return value, called to produce plot.
David Banks, Tom Elliott
histogramArray
fit <- lm(Volume ~ Height + Girth, data = trees)
iNZightQQplot(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.