Skip to content
Back to formatted view

Raw Message

Message-ID: <553FEE47.2030501@uni-muenster.de>
Date: 2015-04-28T20:32:07Z
From: Edzer Pebesma
Subject: Gaussian transformation
In-Reply-To: <CAGOAjXPkRuD-a1yEkFcAE85jRss2vwdZts1fuKPviYg=MD8o_g@mail.gmail.com>

one way is the rank transform:

x = rgamma(100, 0.1)
hist(x)
y = qnorm((order(x)/(length(x) + 0.5)))
qqnorm(y)

but transforming your conditionally simulated values back will be
tricky. And I'm not sure about the 0.5.

On 04/28/2015 06:09 PM, Carlo Innocenti wrote:
> I would like to perform a gaussian conditional simulation on a variable
> that is highly skewed.
> Could someone suggest me how to transform my variable in a gaussian
> distribution?
> 
> Thanks,
> Carlo
> 
> 

-- 
Edzer Pebesma
Institute for Geoinformatics (ifgi),  University of M?nster,
Heisenbergstra?e 2, 48149 M?nster, Germany; +49 251 83 33081
Journal of Statistical Software:   http://www.jstatsoft.org/
Computers & Geosciences:   http://elsevier.com/locate/cageo/
Spatial Statistics Society http://www.spatialstatistics.info

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20150428/a8c094a2/attachment.bin>