anamorph: Anamorph

Description Usage Arguments Details Value Author(s) References Examples

Description

Creates functions that transform arbitary distributions into a Gaussian distributions, and vice versa.

Usage

1
anamorph(x, k, plot = F)

Arguments

x

data

k

number of Hermite polynomials

plot

plot

Details

Increasing k can give a better fit.

Value

Returns two function in a list

xtog

Function to transform arbitrary variable x into a Gaussian distribution

gtox

The back transformation

Author(s)

Richard Telford [email protected]

References

Wackernagel, H. (2003) Multivariate Geostatistics. 3rd edition, Springer-Verlag, Berlin.

Examples

1
2
3
4
5
6
7
8
set.seed(666)
x <- c(rnorm(50, 0, 1), rnorm(50, 6, 1))
hist(x)
ana.fun <- anamorph(x, 30, plot = TRUE)
xg <- ana.fun$xtog(x)
qqnorm(xg)
qqline(xg)
all.equal(x, ana.fun$gtox(xg))

palaeoSig documentation built on May 29, 2017, 9:11 a.m.