hlog: Hybrid Log

Description Usage Arguments Details Author(s)

View source: R/hlog.R

Description

Given a constant c this function returns x if x is less than c and sign(x)*(c*log(abs(x)/c) + c) if its not. Notice this is a continuous odd ( f(-x)=-f(x) ) function with continuous first derivative. The main purpose is to perform log transformation when one has negative numbers, for example for PM-MM.

Usage

1
hlog(x, constant=1)

Arguments

x

a number.

constant

the constant c (see description).

Details

If constant is less than or equal to 0 log(x) is returned for all x. If constant is infinity x is returned for all x.

Author(s)

Rafael A. Irizarry


affy documentation built on Nov. 8, 2020, 8:18 p.m.