anamFit: Fit an empirical Gaussian Anamorphosis

Description Usage Arguments Examples

View source: R/transformations.R

Description

Fit an empirical Gaussian Anamorphosis

Usage

1
2
anamFit(x, extrapolate=TRUE, ndisc=101, useRGeostats=FALSE,
        xlim=c(-Inf,Inf), keepMoments=TRUE)

Arguments

x

REAL, input vector

extrapolate

LOGICAL, whether to go beyond input limits by multiplying the original range by two

ndisc

INTEGER, number of steps used to discretize the range of raw values, This parameter is used only for empirical anamorphosis and if the anamorphosis is done via anam.fit in package RGeostats

useRGeostats

LOGICAL, where to call RGeostats::anam.fit

xlim

REAL, bounds for the raw variables. For example, xlim[1]==0 prevents negative values in the back-transformed raw values

keepMoments

LOGICAL, whether to preserve the mean and standard deviation in the transformed variable vector with respect to the raw

Examples

1
2
3
4
5
 xraw <- rlnorm(100)
 xGA <- anamFit(xraw)
 xgau <- approx(xGA[,'r'], xGA[,'g'], xraw)$y
 #hist(xraw, nclass=25)
 #hist(xgau, nclass=25)

garciapintado/rDAF documentation built on May 25, 2019, 7:26 p.m.