qqgl {gld} | R Documentation |
Quantile-Quantile plot against the generalised lambda distribution
Description
qqgl
produces a Quantile-Quantile plot of data against the
generalised lambda distribution, or a Q-Q plot to compare two sets of parameter values
for the generalised lambda distribution. It does for the generalised lambda
distribution what qqnorm
does for the normal.
Usage
qqgl(y = NULL, lambda1 = 0, lambda2 = NULL, lambda3 = NULL, lambda4 = NULL,
param = "fkml", lambda5 = NULL, abline = TRUE, lambda.pars1 = NULL, lambda.pars2 = NULL,
param2 = "fkml", points.for.2.param.sets = 4000, ...)
Arguments
y |
The data sample |
lambda1 |
This can be either a single numeric value or a vector.
If it is a vector, it must be of length 4 for parameterisations
Alternatively, leave If it is a a single value, it is Note that the numbering of the |
lambda2 |
|
lambda3 |
|
lambda4 |
|
lambda5 |
|
param |
choose parameterisation:
|
abline |
A logical value, TRUE adds a line through the origian with a slope of 1 to the plot |
lambda.pars1 |
Parameters of the generalised lambda
distribution (see |
lambda.pars2 |
Second set of parameters of the generalised lambda
distribution (see |
param2 |
parameterisation to use for the second set of parameter values |
points.for.2.param.sets |
Number of quantiles to use in a Q-Q plot comparing two sets of parameter values |
... |
graphical parameters, passed to |
Details
See gld
for more details on the Generalised Lambda
Distribution. A Q-Q plot provides a way to visually assess the
correspondence between a dataset and a particular distribution, or between two
distributions.
Value
A list of the same form as that returned by qqline
x |
The x coordinates of the points that were/would be plotted,
corresponding to a generalised lambda distibution with parameters
|
y |
The original |
Author(s)
Robert King, robert.king.newcastle@gmail.com, https://github.com/newystats/
References
King, R.A.R. & MacGillivray, H. L. (1999), A starship method for
fitting the generalised \lambda
distributions,
Australian and New Zealand Journal of
Statistics 41, 353–374
https://github.com/newystats/gld/
See Also
Examples
qqgl(rgl(100,0,1,0,-.1),0,1,0,-.1)
qqgl(lambda1=c(0,1,0.01,0.01),lambda.pars2=c(0,.01,0.01,0.01),param2="rs",pch=".")