Skip to content

causalPAF

1.2.5

Causal Effect for Population Attributable Fractions (PAF)

0packages depend
2.7Kdownloads / year
0.0%test coverage
0/13checks pass

Overview

About
Maintained by Maurice O'ConnellFirst published 2021-10-262 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13NOTE
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
  • NOTE r-devel-linux-x86_64-fedora-clang
  • NOTE r-devel-linux-x86_64-fedora-gcc
  • NOTE r-devel-windows-x86_64
  • NOTE r-oldrel-macos-arm64
  • NOTE r-oldrel-macos-x86_64
  • NOTE r-oldrel-windows-x86_64
  • NOTE r-patched-linux-x86_64
  • NOTE r-release-linux-x86_64
  • NOTE r-release-macos-arm64
  • NOTE r-release-macos-x86_64
  • NOTE r-release-windows-x86_64
Slowest check: 2.3 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.00
0.0%
Coverage · measured lines
100%
Documentation · exports
15
Dependencies · direct
Check history
  • NOTE2026-06-09
    0 OK · 13 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    0 OK · 12 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-10
    0 OK · 14 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 258 wordsVignettesNopkgdown siteNoNEWSYes · 67% structuredCode of conductNoContributing guideNo
Examples that run
17%
Documented parameters
100%
Return-value docs
100%
References docs
0%

Downloads

2.7K
CRAN downloads in the past year
Rank #14,837 · ~7/day · ~226/mo
Daily download trend is not available in this view yet.
16230 days
69790 days
2.7K1 year
Compare downloads with other packages →
Also on128 r2u5 autocran

Repository

Repository
2Stars
1Forks
0Open issues
0Open PRs
1Releases
41Commits
1Contributors
41 commits · Last activity 2022-08-20

Stars over time

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

Repository practices

Upstream repositoryBeta

4 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/mauriceoconnell/causalpaf on 2026-08-16.

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

Dependencies

Declared dependencies
11 external dependencies (excludes base and recommended)
Depends (1)
R >= 2.10
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Datasets

People & History

People (2)
Maintainer (1)
Author, Copyright holder, Maintainer
Authors (2)
Author, Copyright holder, Maintainer
Author, Copyright holder
Copyright holders (2)
Author, Copyright holder, Maintainer
Author, Copyright holder
Package Timeline

2 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 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
    2022-08-20 · current release · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 1.2.4
    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
Installed size
not tracked yet
With dependencies
not tracked yet

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 is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

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-08-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-18, 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