Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: Log transformation


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Log transformation
Date   Tue, 16 Aug 2011 11:31:36 +0100

I think you need at least the -exp- option of -adjust-. See its help.

Nick

On Tue, Aug 16, 2011 at 11:18 AM, Amy Jennings
<amyjennings79@hotmail.com> wrote:
> Hi Nick,
>
> Many thanks for the advice - can I just check that I have substituted the glm command in the right way below? The adjusted means I am getting from the glm model seem different to what I would expect.
>
>
> xi:reg log_ins i.q5_adj age smoke bmi
> adjust age smoke bmi, by (q5_adj) se ci
>
> xi:glm ins i.q5_adj age smoke bmi, link(log)
> adjust age smoke bmi, by (q5_adj) se ci
>
> Many thanks,
>
> Best wishes, Amy
>
>
> ----------------------------------------
>> Date: Tue, 16 Aug 2011 10:20:39 +0100
>> Subject: Re: st: Log transformation
>> From: njcoxstata@gmail.com
>> To: statalist@hsphsun2.harvard.edu
>>
>> Why not start again with -glm, link(log)- which does this for you?
>>
>> Nick
>>
>> On Tue, Aug 16, 2011 at 9:54 AM, Amy Jennings <amyjennings79@hotmail.com> wrote:
>>
>> > I have run a regression model in stata with a continuous outcome, a categorical predictor and a number of covariates using xi:reg followed by the adjust command.
>> >
>> > My continuous outcome measure is log-transformed using the natual log is there any command for back-transforming the adjusted means and confidence intervals to the original units?
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index