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 on April 23, and its replacement, is already up and running.

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

st: New version of -punaf- on SSC

From   "Roger B. Newson" <>
To   "" <>, Brian Claggett <>, "M. Bozorgmanesh" <>
Subject   st: New version of -punaf- on SSC
Date   Fri, 19 Apr 2013 14:35:08 +0100

Thanks as always to Kit Baum, a new version of the -punafcc- package is now available for download from SSC. In Stata, use the -ssc- command to do this, or -adoupdate- if you already have an old version of -punafcc-.

The -punafcc- package is described as below on my website. The new version fixes a bug, which caused - punafcc- to give the wrong results when called after -stcox- in a survival dataset with censored lifetimes. This is now fixed.

I would like to thank Brian Claggett of Harvard University for alerting me to this bug, and Isabel Canette of Stata Technical Support for her helpful advice about how best to correct this bug. And I would like to apologise for any inconvenience caused. (I have added a new test sequence to my certification script for -punafcc- to check that it stays fixed.)

Best wishes


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
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Web page:
Departmental Web page:

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

package punafcc from

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 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.

      Author: Roger Newson
      Distribution-Date: 17april2013
      Stata-Version: 12

INSTALLATION FILES                                  (click here to install)
(click here to return to the previous screen)
*   For searches and help try:

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