Skip to content

averisk

Calculation of Average Population Attributable Fractions and Confidence Intervals

v1.0.3 · Mar 20, 2017 · CC0

Description

Average population attributable fractions are calculated for a set of risk factors (either binary or ordinal valued) for both prospective and case- control designs. Confidence intervals are found by Monte Carlo simulation. The method can be applied to either prospective or case control designs, provided an estimate of disease prevalence is provided. In addition to an exact calculation of AF, an approximate calculation, based on randomly sampling permutations has been implemented to ensure the calculation is computationally tractable when the number of risk factors is large.

Downloads

CRAN

268

Last 30 days

15470th

728

Last 90 days

3.4K

Last year

Trend: +32.7% (30d vs prior 30d)

r2u CRAN

13

Last 30 days

29

Last 90 days

113

Last year

Trend: -7.1% (30d vs prior 30d)

autoCRAN

5

Last 7 days

18

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies MASS averisk

Version History

5 tracked
new 1.0.3 Mar 10, 2026
updated 1.0.3 ← 1.0.2 diff Mar 20, 2017
updated 1.0.2 ← 1.0.1 diff Jun 19, 2016
updated 1.0.1 ← 1.0 diff Jan 13, 2016
new 1.0 Oct 28, 2015