EconPapers    
Economics at your fingertips  
 

PUNAF: Stata module to compute population attributable fractions for cohort studies

Roger Newson

Statistical Software Components from Boston College Department of Economics

Abstract: 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 whose predicted values are interpreted as conditional arithmetic means, such as logit, logistic, poisson, or glm. It estimates the logs of two scenario means, the baseline scenario ("Scenario 0") and a fantasy scenario ("Scenario 1"), in which one or more exposure variables are assumed to be set to particular values (typically zero), and any other predictor variables in the model are assumed to remain the same. It also estimates the log of the ratio of the Scenario 1 mean to the Scenario 0 mean. This ratio is known as the population unattributable fraction, and is subtracted from 1 to derive the population attributable fraction, defined as the proportion of the mean of the outcome variable attributable to living in Scenario 0 instead of Scenario 1.

Language: Stata
Requires: Stata version 14
Keywords: confidence intervals; population attributable fractions (search for similar items in EconPapers)
Date: 2010-10-15, Revised 2015-09-04
Note: This module should be installed from within Stata by typing "ssc install punaf". The module is made available under terms of the GPL v3 (https://www.gnu.org/licenses/gpl-3.0.txt). Windows users should not attempt to download these files with a web browser.
References: Add references at CitEc
Citations:

Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/p/punaf.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/p/punaf_p.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/p/punaf.sthlp help file (text/plain)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s457193

Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php

Access Statistics for this software item

More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2025-03-30
Handle: RePEc:boc:bocode:s457193