makePreventableFraction: Factory for preventable fraction functions

Description Usage Arguments

View source: R/factories-free-aaf-cmp.R

Description

Produces the combined and scaled function that respresents the preventable fraction of disease that, when integrated against exposure, produces an attributable fraction term.

Usage

1
2
3
4
5
6
7
8
makePreventableFraction(
  bb,
  non_bingers,
  bingers,
  p_bat_error_correction,
  ext_risk,
  binge_risk
)

Arguments

bb

dbl, binge barrier

non_bingers

dbl, proportion of drinkers below BB that do not binge

bingers

dbl, proportion of drinkers below BB that do binge

ext_risk

fn, extrapolated relative risk for nonbingers

binge_risk

fn, extrapolated relative risk for bingers


uvic-cisur/intermahpr documentation built on June 17, 2020, 1:30 a.m.