EconPapers    
Economics at your fingertips  
 

PUNAFCC: Stata module to compute population attributable fractions for case-control and survival studies

Roger Newson

Statistical Software Components from Boston College Department of Economics

Abstract: 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 parameters are interpreted as log rate ratios, such as logit or logistic for case-control data, or stcox for survival data. It estimates the log of the mean rate ratio, in cases or deaths, between 2 scenarios, a 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. This ratio is known as the population unattributable fraction (PUF), and is subtracted from 1 to derive the population attributable fraction (PAF), defined as the proportion of the cases or deaths attributable to living in Scenario 0 instead of Scenario 1.

Language: Stata
Requires: Stata version 14
Keywords: confidence intervals; population attributable fractions; case-control studies; survival studies (search for similar items in EconPapers)
Date: 2011-10-29, Revised 2023-02-06
Note: This module should be installed from within Stata by typing "ssc install punafcc". 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/punafcc.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/p/punafcc_p.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/p/punafcc.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:s457354

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:s457354