Statalist The Stata Listserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Interval Regression

From   "Clive Nicholas" <>
Subject   Re: st: Interval Regression
Date   Thu, 6 Jul 2006 02:29:46 +0100 (BST)

Janelle Knox wrote:

> What is the formal command to log transform a variable

Depends on the kind of log-transformation required. For instance, you can:

. g logvar=log10(var) [for base 10 log-transformations]


. g logvar=log(var)
  OR                  [for natural log-transformations]
. g logvar=ln(var)

See -whelp math fucntions- for more.

CLIVE NICHOLAS        |t: 0(044)7903 397793
Politics              |e:
Newcastle University  |

Whereever you go and whatever you do, just remember this. No matter how
many like you, admire you, love you or adore you, the number of people
turning up to your funeral will be largely determined by local weather

*   For searches and help try:

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