Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: aflogit and xi:


From   "Christy McKinney" <[email protected]>
To   <[email protected]>
Subject   st: aflogit and xi:
Date   Tue, 25 Jul 2006 11:43:14 -0400

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/



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