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: marginsplot and transformed dependent variable


From   Nick Cox <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: marginsplot and transformed dependent variable
Date   Thu, 25 Apr 2013 08:34:03 +0100

As the Statalist FAQ advises, this is an interdisciplinary list. I
know CV as curriculum vitae and coefficient of variation, which both
sound wrong here. If I guess harder, you mean cardiovascular. It is
best to assume ignorance of your field and limited competence in Stata
in those likely to reply.

More importantly, this is difficult to comment on precisely. The
flavour is too much like "I tried something, but the results look
wrong" to which the answer is too much like "Well, it probably is
wrong". You show no exact code and no exact results.

Try a generalised linear model using -glm-. That way, you try to get
the best of both worlds by fitting on a transformed scale, but getting
predictions in terms of your response or outcome variable.

Nick
[email protected]


On 25 April 2013 06:11, Tom Robinson <[email protected]> wrote:

> Hi, I am wanting to look at the effect of body mass index on CV risk
> factors (HbA1c, BP, lipids) in people with T2 diabetes.
>
> I am using linear regression to control for demographic variables and
> have categorized BMI. I would like to use margins and marginsplot to
> present the results.
>
> Mt problem is that the models that include the dependent variables (the CV
> risk factors) untransformed have poor post-estimation diagnostics i.e.
> non-normal residuals, heteroskedasticity, and poor fit
>
> If I transform the dependent variables (log or inverse) the models are much
> better.  But then it is difficult to present the results to a general
> readership.  Is it possible to take the transformed margins estimates and
> un-transform them?  When I do it by hand they don't look right so maybe
> this doesn't make sense.
>
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index