Skip to content

causalPAF

1.2.5Package record

Causal Effect for Population Attributable Fractions (PAF)

0packages depend
2.9Kdownloads / year
0.0%test coverage
0/13flavors OK

Overview

About

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.

Changes in 1.2.5
  • In Description changed version from 1.2.5.9019 to 1.2.5.

From NEWS.md in the release

Install

Health

CRAN checks
13NOTE
Check messages
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
       |              ^

CRAN check page ↗

Slowest check: 2.1 min · r-oldrel-windows-x86_64
Status changes
  • NOTE13 NOTE2026-06-09
  • ERROR12 NOTE, 1 ERROR2026-06-08
  • NOTE14 NOTE2026-03-10
Advisories

none known

Documentation

In release 1.2.5
READMEYes · 258 wordsVignettesNoNEWSYes · 67% structured · mentions 1.2.5Citation fileNoWebsitenot declared in DESCRIPTION
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

2.9K
CRAN downloads in the past year
Rank #14,774 · ~8/day · ~239/mo
Daily download trend is not available in this view yet.
30930 days
80990 days
2.9K1 year
Compare downloads with other packages →
Also on85 r2u7 autocran

Repository

2Stars
1Forks
0Open issues
0Open PRs
1Releases
41Commits
1Commit identities
41 commits · Last activity 2022-08-20
Responsiveness
not measured

Stars over time

2025-02-20 · 22026-07-07 · 2
PracticesBeta

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.

Docs source (1)
README.Rmd
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
11 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 2.10
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (2)
Author, Copyright holder, Maintainer since 1.2.4 (2021)
Author, Copyright holder
Releases (2)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 1.2.5Latest
    record
    2022-08-20 · current release · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 1.2.4
    record
    2021-10-26
  • R
    R 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")
O'Connell, M., & Ferguson, J. (2022). causalPAF: Causal Effect for Population Attributable Fractions (PAF) (Version 1.2.5) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for causalPAF version 1.2.5 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy