Yash
Yash

Reputation: 171

How to do an inverse log transformation in R?

I am familiar with regular log transformations:

DF1$RT <- log(DF1$RT)

How do I perform an inverse log transformation in R?

Upvotes: 17

Views: 54932

Answers (1)

G. Grothendieck
G. Grothendieck

Reputation: 269664

The term inverse can be used with different meanings. The meanings are:

  1. reciprocal. In the case of reciprocal (also known as the multiplicative inverse) the inverse of log(x) is 1/log(x)

  2. inverse function. In the case of an inverse function it refers to solving the equation log(y) = x for y in which case the inverse transformation is exp(x) assuming the log is base e. (In general, the solution is b^x if the log is of base b. For example, if log10(y) = x then the inverse transformation is 10^x.)

Upvotes: 41

Related Questions