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.
Author  John Ferguson [aut, cre] 
Date of publication  20170321 06:50:31 UTC 
Maintainer  John Ferguson <john.ferguson@nuigalway.ie> 
License  CC0 
Version  1.0.3 
Package repository  View on CRAN 
Installation  Install the latest version of this package by entering the following in R:



All man pages Function index File listing
Man pages  

averisk: averisk: Calculation of Average Population Attributable...  
getAF: Calculate average attributable fractions 
Functions  

AF_exact  Source code 
affun  Source code 
affun_ci  Source code 
affun_temp  Source code 
averisk  Man page 
averiskpackage  Man page 
create_frame  Source code 
getAF  Man page Source code 
perm  Source code 
recode  Source code 
Files  

NAMESPACE
 
R
 
R/internal.R  
R/averisk.R  
R/main.R  
MD5
 
DESCRIPTION
 
man
 
man/getAF.Rd  
man/averisk.Rd 
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
Please suggest features or report bugs in the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.