Calculate attributable risk estimates for one or more exposure characteristics. The attributable risk, or etiologic fraction, is an estimate of the reduction in an outcome were a risk factor to change.
1 2 3 4 
formula 
an object of class 'formula'. A symbolic description of the model to be fitted. 
data 
a data frame used for the formula. 
weights 
optional weights for the fitting criterion. 
subset 
an optional vector specifying a subset of observations to be used. 
na.action 
a missingdata filter function. This is applied to the model.frame
after any
subset argument has been used. Default is 
varmethod 
A string that specifies the resampling technique used to estimate confidence intervals and standard errors.

k 
the number of groups to use for the jackknife.
The parameter is ignored for bootstrap variance. Setting this
to 0 or to a value >= the sample size will leads to leaving out each
observation one at a time, i.e., the ordinary jackknife.
Optionally, 
conf 
The confidence level for confidence intervals 
control 
a list of optional parameters, see 
baseline 
Must be either NULL or a data frame containing values for the exposure variable(s) of the formula, which specifies the desired baseline value for each individual. 
model 
a logical value indicating whether model frame should be included as a component of the returned value. 
x,y 
logical values indicating whether the model matrix and/or response used in the fitting process should be returned. 
... 
other arguments such as 
an object of class "attribrisk" with the following components:
attributable risk estimate
variance of the attributable risk
results from the underlying coxph or glm fit
results of the boot
function, optional
results of the boot.ci
function, optional
A copy of the call to the function
None.
attribrisk.fit
, attribrisk.control
, and
benichou
1 2 3 4 5  data(benichou)
# Use the Benichou (1991) data to estimate attributable risk of oesophageal
# cancer due to alcohol greater than or equal to 80g/day
attribrisk(cases ~ expos(alcohol80), data=benichou)

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.