Description Usage Arguments Value Author(s) Examples
This function computes the normal QQ plot for given data and allows for comparison with normal QQ plots of simulated data.
1 2 3 4 |
test |
a vector containing a sample to be tested; if not supplied, all qq-plots are of the reference distribution |
m |
the sample size for the reference samples; default is test sample size if test sample is supplied |
nrep |
the total number of samples, including reference samples and test sample if any |
distribution |
reference distribution; default is standard normal |
seed |
the random number generator seed |
nrows |
number of rows in the plot layout |
cex.strip |
character expansion factor for labels |
xlab |
label for x-axis |
ylab |
label for y-axis |
QQ plots of the sample (if test is non-null) and all reference samples
J.H. Maindonald
1 2 3 4 5 6 7 8 | # qreference(rt(180,1))
# qreference(rt(180,1), distribution=function(x) qt(x, df=1))
# qreference(rexp(180), nrep = 4)
# toycars.lm <- lm(distance ~ angle + factor(car), data = toycars)
# qreference(residuals(toycars.lm), nrep = 9)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.