Last data update: 2014.03.03

R: Plots a QQ-Norm plot with several Gaussian simulations.
qqnormSimR Documentation

Plots a QQ-Norm plot with several Gaussian simulations.

Description

Plots a QQ-Norm plot of the variable x with nSim Gaussian simulations.

Usage

## S4 method for signature 'lm'
qqnormSim(x, nSim = 500)
## S4 method for signature 'numeric'
qqnormSim(x, nSim = 500)

Arguments

x

is a lm-object or a numeric vector. If it is an lm-object its residuals are plotted.

nSim

is an optional argument. If you like to have more or less than 500 simulations you can specify this parameter.

Examples

## Not run: 
# The observations should behave like a simulation, 
# because the observations are sampled from a Gaussian distribution.
qqnormSim(rnorm(100))
# On the first glance its obvious that this sample 
# doesn't originate from a Gaussian distribution due to the heavy tails.
qqnormSim(rt(100,df = 4))

# Reduce the simulation tracks from 500 to 50. (500 is default).
# Not recommended unless you have not enough computation power.
qqnormSim(rnorm(100), nSim = 50)
## End(Not run)

Results