Learn R Programming

AF (version 0.1.5)

Model-Based Estimation of Confounder-Adjusted Attributable Fractions

Description

Estimates the attributable fraction in different sampling designs adjusted for measured confounders using logistic regression (cross-sectional and case-control designs), conditional logistic regression (matched case-control design), Cox proportional hazard regression (cohort design with time-to- event outcome), gamma-frailty model with a Weibull baseline hazard and instrumental variables analysis. An exploration of the AF with a genetic exposure can be found in the package 'AFheritability' Dahlqwist E et al. (2019) .

Copy Link

Version

Install

install.packages('AF')

Monthly Downloads

393

Version

0.1.5

License

GPL-2 | GPL-3

Maintainer

Elisabeth Dahlqwist

Last Published

May 20th, 2019

Functions in AF (0.1.5)

plot.AF

Plot function for objects of class "AF" from the function AFcoxph or AFparfrailty.
AFglm

Attributable fraction estimation based on a logistic regression model from a glm object (commonly used for cross-sectional or case-control sampling designs).
singapore

Case-control study on oesophageal cancer in Chinese Singapore men.
rott2

Cohort study on breast cancer patients from the Netherlands.
AFcoxph

Attributable fraction function based on a Cox Proportional Hazard regression model as a coxph object (commonly used for cohort sampling designs with time-to-event outcomes).
AF.cc

AF.ch

AFivglm

AFclogit

Attributable fraction estimation based on a conditional logistic regression model as a clogit object (commonly used for matched case-control sampling designs).
AF.cs

AFparfrailty

Attributable fraction function based on a Weibull gamma-frailty model as a parfrailty object (commonly used for cohort sampling family designs with time-to-event outcomes).
clslowbwt

Birthweight data clustered on the mother.
summary.AF

Summary function for objects of class "AF".