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 sometimes caused punafcc to return incorrect results after a model with interactions involving the exposure and other covariates. I would like to thank Paul McGale, of the Nuffield Department of Population Health, Oxford University, UK, for alerting me to this bug.
Best wishes
Roger
--------------------------------------------------------------------------------------
package punafcc from http://www.rogernewsonresources.org.uk/stata14
--------------------------------------------------------------------------------------
TITLE
punafcc: Population attributable fractions for case-control and survival studies
DESCRIPTION/AUTHOR(S)
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: 06february2023
Stata-Version: 14
INSTALLATION FILES (click here to install)
punafcc.ado
punafcc_p.ado
punafcc.sthlp
--------------------------------------------------------------------------------------
(click here to return to the previous screen)
Related Posts with New version of punafcc on SSC
how to calculate adult equivalenthi I'm new in stata, and I need some help to resolve my problem I want to calculate expenditure per …
graph twoway: two x-axis, lines and line labellingHi folks - apologies a bit of a beginner with the plotting in Stata, but was wondering if anyone kne…
Replace the first date of the first quarter with the last date of the first quarter for all ids and years.Dear All, I found this question here (https://bbs.pinggu.org/thread-10256921-1-1.html). The data set…
export correlationmatrix from stata to excelHello everybody, I created a correlationmatrix with the following code: pwcorr roa roe size indust…
What does ", noconstant" do to standard error?I tried to suppress the constant in a regression, the coefficient is correct but the standard error …
Subscribe to:
Post Comments (Atom)
0 Response to New version of punafcc on SSC
Post a Comment