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

st: RE: Code and info for log-transformation

From   "Newson, Roger B" <>
To   <>
Subject   st: RE: Code and info for log-transformation
Date   Sun, 18 Nov 2007 14:15:46 -0000

A possible link is the Stata Tip of Newson (2003), which describes how
to calculate confidence intervals for geometric means and their ratios
using -regress- with the -eform()- option. A post-publication update can
be downloaded from

However, as Austin says, you need not transform y just because it is
skewed. If you are more interested in median differences than in
geometric mean ratios, then you can use the -cendif- or -censlope-
commands to calculate confidence intervals for median differences and
slopes, for data which may be skewed or otherwise non-Normal. The
-cendif- and -censlope- commands are part of the -somersd- package,
which you can download from SSC, and which calculates confidence
intervals for a wide range of rank statistics.

I hope this helps


Newson R. Stata tip 1: The eform() option of regress. The Stata Journal
2003; 3(4): 445. Download post-publication update from

Roger Newson
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Web page:
Departmental Web page:

Opinions expressed are those of the author, not of the institution.

-----Original Message-----
[] On Behalf Of Ziad
Sent: 16 November 2007 22:50
Subject: st: Code and info for log-transformation

Dear STATA lister
i am trying to find more info how to write command for
log-transformation because i have skewed data?

Or if you have any link to recommend to see?

Thank you in advance and best regards
*   For searches and help try:

*   For searches and help try:

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