qqgnl: Generalised Normal Laplace Quantile-Quantile and...

Description Usage Arguments Value References See Also Examples

Description

qqgnl produces a Generalised Normal Laplace Q-Q plot of the values in y.

ppgnl produces a Generalised Normal Laplace P-P (percent-percent) or probability plot of the values in y.

Graphical parameters may be given as arguments to qqgnl, and ppgnl.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
qqgnl(y, mu = 0, sigma = 1, alpha = 1, beta = 1, rho = 1,
      param = c(mu, sigma, alpha, beta, rho),
      main = "Generalised Normal Laplace Q-Q Plot",
      xlab = "Theoretical Quantiles",
      ylab = "Sample Quantiles",
      plot.it = TRUE, line = TRUE, ...)
ppgnl(y, mu = 0, sigma = 1, alpha = 1, beta = 1, rho = 1,
      param = c(mu, sigma, alpha, beta, rho),
      main = "Generalised Normal Laplace P-P Plot",
      xlab = "Uniform Quantiles",
      ylab = "Probability-integral-transformed Data",
      plot.it = TRUE, line = TRUE, ...)

Arguments

y

The data sample.

mu

mu is the location parameter. By default this is set to 0.

sigma

sigma is the variance parameter of the distribution. A default value of 1 has been set.

alpha

alpha is a shape parameter, with a default value of 1.

beta

beta is a shape parameter, by default this is 1.

rho

rho is a scaling parameter with a default of 1.

param

Parameters of the Generalised Normal Laplace distribution.

xlab, ylab, main

Plot labels.

plot.it

Logical. Should the result be plotted?

line

Add line through origin with unit slope.

...

Further graphical parameters.

Value

For qqgnl and ppgnl, a list with components:

x

The x coordinates of the points that are to be plotted.

y

The y coordinates of the points that are to be plotted.

References

Wilk, M. B. and Gnanadesikan, R. (1968) Probability plotting methods for the analysis of data. Biometrika. 55, 1–17.

See Also

ppoints, dgnl, gnlFit

Examples

1
2
3
4
5
6
par(mfrow = c(1, 2))
param <- c(2, 2, 1, 1, 1)
y <- rgnl(200, param = param)
qqgnl(y, param = param, line = FALSE)
abline(0, 1, col = 2)
ppgnl(y, param = param)

sjp/NormalLaplace documentation built on May 30, 2019, 12:06 a.m.