graphPAF2.0.0 package

Estimating and Displaying Population Attributable Fractions

automatic_fit

Automatic fitting of probability models in a pre-specified Bayesian ne...

average_paf

Calculation of average and sequential paf taking into account risk fac...

data_clean

Clean a dataset to make model fitting more efficient

do_sim

Internal: Simulate a column from the post intervention distribution co...

graphPAF

Estimating and Displaying Population Attributable Fractions

if_bruzzi

Internal: Calculation of an impact fraction using the Bruzzi approach

if_direct

Internal: Calculation of an impact fraction using the direct approach

impact_fraction

General calculations of impact fractions

joint_paf

Calculation of joint attributable fractions over several risk factors ...

PAF_calc_continuous

Calculation of attributable fractions with a continuous exposure

PAF_calc_discrete

Calculation of attributable fractions using a categorized risk factor

paf_levin

Implementation of Levin's formula for summary data

paf_miettinen

Implementation of Miettinen's formula for summary data

plot.PAF_q

Plot impact fractions corresponding to risk-quantiles over several ris...

plot.rf.data.frame

Create a fan_plot of a rf.data.frame object

plot.SAF_summary

Produce plots of sequential and average PAF

plot_continuous

Plot hazard ratios, odds ratios or risk ratios comparing differing val...

predict_df_continuous

Internal: Create a data frame for predictions (when risk factor is con...

predict_df_discrete

Internal: Create a data frame for predictions (when risk factor is dis...

print.PAF_q

Print out PAF_q for differing risk factors

print.SAF_summary

Print out a SAF_summary object

ps_paf

Estimate pathway specific population attributable fractions

pspaf_discrete

Internal, pathway specific PAF when the mediator is discrete

rf_summary

Create a rf.data.frame object

risk_quantiles

Return the vector of risk quantiles for a continuous risk factor.

seq_paf

Calculation of sequential PAF taking into account risk factor sequenci...

sim_outnode

Internal: Simulate from the post intervention distribution correspondi...

Estimation and display of various types of population attributable fraction and impact fractions. As well as the usual calculations of attributable fractions and impact fractions, functions are provided for attributable fraction nomograms and fan plots, continuous exposures, for pathway specific population attributable fractions, and for joint, average and sequential population attributable fractions.

  • Maintainer: John Ferguson
  • License: MIT + file LICENSE
  • Last published: 2023-12-21