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: FW: population attritutable risk fraction and xi in logistic regression


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: FW: population attritutable risk fraction and xi in logistic regression
Date   Sat, 7 May 2011 16:14:35 +0100

The difficulty you had with -xi:- that "it did not like interactions"
makes no sense; the whole point of -xi:- is to support interactions.
Your specific difficulty can not be addressed if you do not show the
code.

The other difficulty with -aflogit- I cannot advise on, but everyone
is asked to explain where user-written programs they use come from. In
this case

STB-42  sbe21 .  Adjusted pop. attributable fractions from logistic regression
        (help aflogit if installed) . . . . . . . . . . . . . . . . . A. Brady
        3/98    pp.8--12; STB Reprints Vol 7, pp.137--143
        estimation of the attributable fraction (AF) from within a
        logistic regression framework, thus enabling confounders to
        be taken into account, and allows estimation of the summary
        AF for a set of exposures

Nick

On Sat, May 7, 2011 at 3:13 PM, Fitzmaurice, Ann E.
<a.e.fitzmaurice@abdn.ac.uk> wrote:

> I would like to calculate the PAFR after logistic regression  with and without interactions of the form-
>
> Logistic dependent var1 list of variables var1*each of the variables in the list using xi
>
> Var1 has four groups , and this is where I think the problem may be
>
> The first problem got was that the use of xi did not like interactions (do not understand why), so I removed the interactions, but using aflogit, this couldn't find  var1
>
> This is the command I used
>
> aflogit bir_grp2, cc
>
> can anyone explain how to get this fraction from the adjusted model , can it be calculated in stata or by hand and if so does anyone have an example that I can follow
>

*
*   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