I'm having a problem with aflogit. I'm using Stata 9.2.
I can't get aflogit to work when using xi: option. It either can't find the
variable or says I'm using invalid syntax. I've looked at and tried to
carefully apply the example code provided with the help file for aflogit and
am still stuck. I've provided my attempted code below. Any suggestions would
be greatly appreciated!
My problematic code:
. quietly: xi: logit case i.bwt4 i.biryr5
. aflogit Ibwt4*, cc
variable Ibwt4* not found
r(111);
. aflogit _Ibwt4*, cc
Population attributable fraction from logistic regression
Case-control data (n=16516)
No weights assumed
Term Ref. A.F. s.e. [95% Conf. Int.]*
----------------------------------------------------------
invalid syntax
r(198);
Christy McKinney, MPH
PhD Candidate
Department of Epidemiology
University of Washington
[email protected]
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/