Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: log transformation question


From   [email protected]
To   [email protected]
Subject   st: log transformation question
Date   Thu, 17 Jun 2004 09:50:06 -0800

2 questions:

** 1 **
i am transforming a bunch of variables into their natural logs, and i 
have read conflicting advice on how to treat the negative values, such 
as growth, which ranges from -99 to +300 in my dataset.

one website suggests i just add +100 to the variable and then log it

gen log_growth = ln(growth+100)

a second website i visited suggests turning all negative values into 0

gen log_growth = ln(growth)
(75 missing values generated)

recode log_growth .=0

** 2 **

once i get all my variables into the appropriate log form, what is the 
difference between using regress and cloglog, because they give me 
different results.

thank you!
matt


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index