Statalist The Stata Listserver


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

Re: st: Re: another aflogit issue


From   Richard Williams <Richard.A.Williams.5@ND.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Re: another aflogit issue
Date   Tue, 31 Oct 2006 16:22:48 -0500

At 04:07 PM 10/31/2006, Marc Campo wrote:
Here is what I am doing:

.logistic incident_lowback age gender hours_week
second_job job_strain

aflogit job_strain

The regression runs fine but no AF!!

I have also tried this one:

.logistic incident_wrist age gender hours_week
second_job xfer position manual_total

.aflogit manual_total, ref(manual_total=3)
Mark, try renaming the vars so they are only 8 characters long:

. webuse auto, clear
(1978 Automobile Data)

. quietly logistic foreign mpg length displacement

. aflogit displacement

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


Term Ref. A.F. s.e. [95% Conf. Int.]*
----------------------------------------------------------
ment not found
r(111);

. clonevar displace = displacement

. quietly logistic foreign mpg length displace

. aflogit displace

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


Term Ref. A.F. s.e. [95% Conf. Int.]*
----------------------------------------------------------
displace 0 -2.3631 . . .
----------------------------------------------------------
TOTAL -2.3631 . . .

* CI calculated on log(1-AF) scale

I haven't worked my way through the code, but it is an old program, and it looks like long variable names cause it grief.


-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
FAX: (574)288-4373
HOME: (574)289-5227
EMAIL: Richard.A.Williams.5@ND.Edu
WWW (personal): http://www.nd.edu/~rwilliam
WWW (department): http://www.nd.edu/~soc
*
* 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