f.log {cwhmisc} | R Documentation |
f.log
determines a positive offset s
for zero values to
be used in a subsequent log transformation.
f.log(x)
x |
vector of data. |
The transformed values log10(data + s).
The value for the offset s
is optimized to render the transformed
values of x
log-normal
W.Stahel, ETH Zuerich, werner.stahel@stat.math.ethz.ch
adapted by:
Christian W. Hoffmann <c-w.hoffmann@sunrise.ch>
http://www.wsl.ch/personal_homepages/hoffmann/index_EN
x <- c(rep(0,20), exp(rnorm(1000))) fx <- f.log(x) ## Not run: oldpar <- par(mfrow = c(2, 3)) plot(x) qqnorm(x) T3plot(x) plot(fx) qqnorm(fx) T3plot(fx) par(oldpar) ## End(Not run)