Statalist


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

Re: st: Difficulty with -aflogit-


From   Richard Williams <Richard.A.Williams.5@ND.edu>
To   statalist@hsphsun2.harvard.edu, statalist@hsphsun2.harvard.edu
Subject   Re: st: Difficulty with -aflogit-
Date   Mon, 19 May 2008 13:04:44 -0400

At 12:40 PM 5/19/2008, Edward White wrote:
Hello, all. I'm having difficulty with the user-written command -aflogit-

The following:

sysuse auto, clear
logit for mpg rep
aflogit

Produces this:

invalid syntax
r(198);

I'm using Stata 9.0 and I noticed that the command was written some time ago. Might there be a problem with compatibility?
Works fine for me under both Stata 9 and 10.  The last part of the output is

. aflogit

Population attributable fraction from logistic regression
Cross-sectional / cohort data (n=69)

No weights assumed

Term      Ref.     A.F.        s.e.      [95% Conf. Int.]*
----------------------------------------------------------
mpg        0      0.8437      0.2211     -1.5015   0.9902
rep78      0      0.9964      0.0069      0.8418   0.9999
----------------------------------------------------------
TOTAL             0.9999      0.0003      0.9844   1.0000

* CI calculated on log(1-AF) scale

Make sure your Stata is up to date.  My version of aflogit is

. which aflogit
c:\ado\plus\a\aflogit.ado
*! version 1.0.6   16 Sep 1997  STB-42 sbe21



-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME:   (574)289-5227
EMAIL:  Richard.A.Williams.5@ND.Edu
WWW:    http://www.nd.edu/~rwilliam

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index