f.log {cwhstat}R Documentation

Determine an optimized offset s and return log10(data+s).

Description

f.log determines a positive offset s for zero values to be used in a subsequent log transforamtion.

Usage

  f.log(x)

Arguments

x vector of data.

Value

The transformed values log10(data + s).

Note

The value for the offset s is optimized to render ...

Author(s)

W.Stahel, ETH Zuerich, werner.stahel@stat.math.ethz.ch

Examples

  x <- c(rep(0,20), exp(rnorm(1000)))
  fx <- f.log(x)
  oldpar <- par(mfrow = c(2, 2))
  plot(x)
  plot(fx)
  qqnorm(x)
  qqnorm(fx)
  par(oldpar)

[Package cwhstat version 1.0.0 Index]