-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.
Nick
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:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/