Skip to content

Gaussian transformation

6 messages · Edzer Pebesma, Carlo Innocenti, Paulo Justiniano Ribeiro Jr

#
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
#
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:

  
    
#
Thank you Edzer.

It works, but I need the back transformation as well.
What about the gaussian anamorphosis with hermite polynomials? I know that
is a method used to normalize the data before to apply the conditional
gaussian simulation.
There is a package in R to transform and back transform with this method?
Another method that is used in these cases should be the normal scores
transformation: is it implemented in some package?

Carlo




2015-04-28 22:32 GMT+02:00 Edzer Pebesma <edzer.pebesma at uni-muenster.de>:

  
    
#
On 04/29/2015 12:32 PM, Carlo Innocenti wrote:
I haven't seen this in R.
I think what I suggested below is commonly referred to as normal score
transformation, maybe with the variation of taking out the 0.5 or having
1, there. GSLIB used to advocate this, and had a program for
backtransforming, making certain assumptions about the tails. I'd
recommend trying log or Box-Cox first, and then look into copulas.

  
    
#
Paulo Justiniano Ribeiro Jr
LEG (Laboratorio de Estatistica e Geoinformacao)
Universidade Federal do Parana
Caixa Postal 19.081
CEP 81.531-990
Curitiba, PR  -  Brasil
Tel: (+55) 41 3361 3573
VOIP: (+55) (41) (3361 3600) 1053 1066
Fax: (+55) 41 3361 3141
e-mail: paulojus AT  ufpr  br
http://www.leg.ufpr.br/~paulojus
On Wed, 29 Apr 2015, Carlo Innocenti wrote:

            
#
Thank you for your answers.

In the meantime, I found the package RGeostats developed by Geosciences
Research Center of MINES ParisTech on http://rgeostats.free.fr and at the
moment I'm studying it.
It seems promising with 3D geostatistics capability and function for
gaussian anamorphosis transformation and back transformation.

Carlo




2015-04-29 15:11 GMT+02:00 Paulo Justiniano Ribeiro Jr <
paulojus at c3sl.ufpr.br>: