Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Calculation of attributable risk in surveys (SVY)


From   "Roger B. Newson" <r.newson@imperial.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Calculation of attributable risk in surveys (SVY)
Date   Wed, 12 Sep 2012 10:53:35 +0100

Georgia does not specify the version of Stata being used. However, as Nick's quote indicates, -punaf- comes in 2 versions, a Stata Version 12 version downloadable from SSC and a Stata Version 11 version downloadable from my website by typing

net from http://www.imperial.ac.uk/nhli/r.newson/stata11

and selecting and installing -punaf-. The Stata Version 11 -punaf- does not run under Stata Version 12, and vice versa. This is because StataCorp made changes to the -margins- command, which is used by -punaf-, during the transition to Stata Version 12.

Best wishes

Roger

Roger B Newson BSc MSc DPhil
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton Campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
UNITED KINGDOM
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Email: r.newson@imperial.ac.uk
Web page: http://www.imperial.ac.uk/nhli/r.newson/
Departmental Web page:
http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/popgenetics/reph/

Opinions expressed are those of the author, not of the institution.

On 12/09/2012 10:06, Nick Cox wrote:
Please remember to say where user-written programs you refer to come from.

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

punaf from http://fmwww.bc.edu/RePEc/bocode/p
     'PUNAF': module to compute population attributable fractions for cohort
     studies / punaf calculates confidence intervals for population /
     attributable fractions, and also for scenario means and / their ratio,
     known as the population unattributable / fraction.  punaf can be used

punafcc from http://fmwww.bc.edu/RePEc/bocode/p
     'PUNAFCC': module to compute population attributable fractions for
     case-control and survival studies / punafcc calculates confidence
     intervals for population / attributable and unattributable fractions in
     case-control or / survival studies.  punafcc can be used after an

punaf from http://www.imperial.ac.uk/nhli/r.newson/stata12
     punaf: Population attributable fractions for cohort studies / punaf
     calculates confidence intervals for population attributable / fractions,
     and also for scenario means and their ratio, known as / the population
     unattributable fraction.  punaf can be used after / an estimation command

punafcc from http://www.imperial.ac.uk/nhli/r.newson/stata12
     punafcc: Population attributable fractions for case-control and survival
     studies / punafcc calculates confidence intervals for population
     attributable / and unattributable fractions in case-control or survival
     studies. / punafcc can be used after an estimation command whose

punaf from http://www.imperial.ac.uk/nhli/r.newson/stata11
     punaf: Population attributable fractions for cohort studies / punaf
     calculates confidence intervals for population attributable / fractions,
     and also for scenario means and their ratio, known as / the population
     unattributable fraction.  punaf can be used after / an estimation command

punaf1 from http://www.imperial.ac.uk/nhli/r.newson/miscdocs
     punaf1: Population unattributable fractions and other scenario comparisons
     / This was first presented to an Asthma Club meeting at Imperial / College
     London on 11 November 2010. It discusses population / unattributable
     fractions, population attributable fractions, / population attributable

Nick

On Wed, Sep 12, 2012 at 9:55 AM, Jamie Madden <jamiem1234@gmail.com> wrote:
After running svy if you use the 'punaf' command you will be able to
calculate PAF's for your data. As far as I know punaf is the command
that replaced aflogit.

Jamie

On Wed, Sep 12, 2012 at 8:26 AM, Georgia Ladbury
<georgia.ladbury@rivm.nl> wrote:
Hi,

I'm mid-analysing a population seroprevalence study that used a 2 stage sampling design. Given the design, I'm using the Stata svy commands so that the analysis adjusts for the study design.

I would like to caclulate some attributable risks and their 95%CIs: in non-svy data I would use the cs commmand, but this does not work with the survey settings; neither does aflogit. Does anyone know a command to calculate attibutable risks under the SVY settings?

*
*   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/

*
*   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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index