Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Log Transformation of Variable

From   Nick cox <>
To   "" <>
Subject   Re: st: Log Transformation of Variable
Date   Sat, 26 Feb 2011 18:43:17 +0000

The usual flavours of log transfomations just use -ln()- or -log10()-. Why do you think you need something different?


On 26 Feb 2011, at 17:04, Melissa King <> wrote:

Good Morning,

I have a dataset that I would like to transform by multiplying the
dependent variables by -log - e, or in other words, the negative
logarithm minus its base. Despite searching this forum and the
Internet, I have been unable to find any information on how to "tell"
Stata to do this. I am able to transform my variable by multiplying it
by negative log:

generate transformed_dep_variable = -log(dep_variable)

However, Stata errors out when I try to communicate -(log+e), because
it no longer recognizes log as a function when I type this in:

generate transformed_dep_variable = -(log+e)(dep_variable)

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index