GH2z | R Documentation |
g
-&-h
TransformationTo transform Tukey g
-&-h
quantiles to standard normal quantiles.
GH2z(q, q0 = (q - A)/B, A = 0, B = 1, ...)
q |
double vector, quantiles |
q0 |
(optional) double vector,
standardized quantiles |
A , B |
(optional) double scalars, location and scale parameters of
Tukey |
... |
parameters of internal helper function |
Unfortunately, function GH2z()
, the inverse of Tukey g
-&-h
transformation,
does not have a closed form and needs to be solved numerically.
For compute intensive jobs, use internal helper function .GH2z()
.
Function GH2z()
returns a double vector of the same length as input q
.
z = rnorm(1e3L)
all.equal.numeric(.GH2z(z2GH(z, g = .3, h = .1), g = .3, h = .1), z)
all.equal.numeric(.GH2z(z2GH(z, g = 0, h = .1), g = 0, h = .1), z)
all.equal.numeric(.GH2z(z2GH(z, g = .2, h = 0), g = .2, h = 0), z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.