Causal Effect for Population Attributable Fractions (PAF)
Overview
Calculates population attributable fraction causal effects. The 'causalPAF' package contains a suite of functions for causal analysis calculations of population attributable fractions (PAF) given a causal diagram which apply both: Pathway-specific population attributable fractions (PS-PAFs) O’Connell and Ferguson (2022) doi:10.1093/ije/dyac079 and Sequential population attributable fractions Ferguson, O’Connell, and O’Donnell (2020) doi:10.1186/s13690-020-00442-x. Results are presentable in both table and plot format.
- In Description changed version from 1.2.5.9019 to 1.2.5.
From NEWS.md in the release
Install
Health
NOTERd filesr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64
checkRd: (-1) eval_make_DAG.Rd:34: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) eval_make_DAG.Rd:35: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) eval_make_formula.Rd:24: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) eval_make_formula.Rd:25: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) eval_make_formula.Rd:26: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) eval_make_formula.Rd:27: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) eval_make_formula.Rd:28: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) eval_make_formula.Rd:29: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) eval_make_formula.Rd:30: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) eval_make_formula.Rd:31: Lost braces in \itemize; \value handles \item{}{} directly
checkRd: (-1) eval_make_form
...[truncated]...
braces; missing escapes or markup?
60 | {SC , SB , SP , SD , Y }, and summarized by the causal graphs in
| ^
checkRd: (-1) strokedata_smallSample.Rd:49: Lost braces; missing escapes or markup?
49 | individual’s behaviour SB = {Smoking, Alcohol intake, inactivity, diet and stress},
| ^
checkRd: (-1) strokedata_smallSample.Rd:50: Lost braces; missing escapes or markup?
50 | their physiology SP = {High blood pressure, ApoB/ApoA ratio, Waist hip ratio}
| ^
checkRd: (-1) strokedata_smallSample.Rd:52: Lost braces; missing escapes or markup?
52 | SD = {Cardiac risk factors, Pre clinical diabetes}.
| ^
checkRd: (-1) strokedata_smallSample.Rd:60: Lost braces; missing escapes or markup?
60 | {SC , SB , SP , SD , Y }, and summarized by the causal graphs in
| ^- NOTE13 NOTE2026-06-09
- ERROR12 NOTE, 1 ERROR2026-06-08
- NOTE14 NOTE2026-03-10
Documentation
- Help pages
- 19 (13 internal)
- Examples that run
- 17%1 run in a plain check · 3 only when donttest examples are enabled (R CMD check --as-cran) · 2 hold no code
- Exported functions with examples
- 35%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
Stars over time
Forks over time
Releases over time
4 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/mauriceoconnell/causalpaf on 2026-10-18.
Dependencies
Installing causalPAF adds 62 packages (39 with compiled code, 61 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 1.2.5Latest
- RR 4.2.0 released · 2022-04-22
- 1.2.42021-10-26
- RR 4.1.0 released · 2021-05-18
Package metadata
- First published
- 2021-10-26
- Total releases
- 2 / 5 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 2.10
- Bundled data
- 336 KB / 2 files
- Download size
- 1.0 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("causalPAF")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.