Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


DAAG (version 0.37)

qreference: Normal QQ Reference Plot

Description

This function computes the normal QQ plot for given data and allows for comparison with normal QQ plots of simulated data.

Usage

qreference(test=NULL, mu = 10, sigma = 1, m = 50, nrep = 5,
             seed=NULL, nrows=NULL, cex.points=0.65, cex.strip=0.75)

Arguments

test
a vector containing a sample to be tested
mu
the mean of the simulated reference samples
sigma
the standard deviation of the reference samples
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
seed
the random number generator seed
nrows
number of rows in the plot layout
cex.points
character expansion factor for plotted points
cex.strip
character expansion factor for labels

Value

  • QQ plots of the sample (if non-null) and all reference samples

Examples

Run this code
qreference(rt(180,1))

qreference(rexp(180), nrep = 4)

data(toycars)
toycars.lm <- lm(distance ~ angle + factor(car), data = toycars)
qreference(residuals(toycars.lm), nrep = 9)

Run the code above in your browser using DataLab