Bookmark and Share

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


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

RE: st: Log transformation


From   Amy Jennings <[email protected]>
To   <[email protected]>
Subject   RE: st: Log transformation
Date   Tue, 16 Aug 2011 10:18:03 +0000

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: [email protected]
> To: [email protected]
>
> 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 <[email protected]> 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/ 		 	   		  
*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index