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

Re: st: aflogit for clustered data?

From   Nick Cox <>
Subject   Re: st: aflogit for clustered data?
Date   Thu, 06 Aug 2009 09:29:40 -0500

-aflogit- is a user-written command from 1998 that long pre-dates current -xt- commands. It is not surprising that it does not work with such commands.

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

Please remember to indicate where user-written commands come from.

I don't have any positive suggestions on your question, unfortunately.


Sabine Gabrysch wrote:

I am trying to calculate adjusted attributable fractions using the aflogit command from the ado file. My data is hierarchical / clustered / panel data and I use multilevel models with random intercepts, STATA commands xtlogit (2 levels) and xtmelogit (3 levels). Unfortunately, aflogit does not work after any of these, only after logit. The simple logit model ignoring the clustering gives coefficients that differ substantially and thus the PAFs will not be correct either... Is there any way to get adjusted PAFs from multilevel models, be it with aflogit or alternative software?

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index