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: logit transformation of RHS variable


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: logit transformation of RHS variable
Date   Thu, 5 Jan 2012 09:12:33 +0000

In generalized linear models, loglog, cloglog and logc are sometimes
used as link functions. I see no reason why they couldn't be used as
transformations on the RHS, as you seek a transformation asymmetric on
(0,1). At worst you need a nested function call such as -log(-log(x)).
 Note that exact values of 0 or 1 can be problematic for these
transformations. Naturally you would end up needing to explain such
transformations.

Nick

On Thu, Jan 5, 2012 at 1:25 AM, Brendan Halpin <[email protected]> wrote:
> On Wed, Jan 04 2012, Raymond Lim wrote:
>
>> Hello Statalisters,
>> I have an independent variable that I believe that needs to be
>> transformed because it's bounded between 0 and 1, and it's easier to
>> go from 0 to .10 than say .80 to .90. My question is, can I use a
>> logit transformation on this RHS variable (new_x = x / (1 - x)? Or are
>> logits usually for LHS variables only?
>
> I'd read the logit transformation as suggesting it is harder rather than
> easier to go from 0 to 0.1 than from 0.8 to 0.9. In log-odds 0 is
> -infinity and 0.1 is log(0.1111) or about -2.2, whereas 0.8 to 0.9 is
> 1.4 to 2.2. The logit makes it hard to move at both extremes, but easy
> around 0.5.
>
> It may be that the "fractional logit model" may be what you need:
>
> glm y x1 x2 ... , family(binomial) link(logit) robust
>
> Googling "fractional logit" gets
> www.maartenbuis.nl/presentations/UKsug06.pdf as the first hit. Maarten
> may have more to say himself, but I would imagine he is currently
> asleep!
>
*
*   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