makeBingeRisk: Factory for binge-modified well-defined rel. risk.

Description Usage Arguments Value

View source: R/factories-rr.R

Description

Produces a Relative-Risk-For-Bingers curve from the given input Given a list that contains the string variable IM and the double variable BINGEF, produces a Relative-Risk-For-Bingers curve. IM is used for the curves for IHD and ischaemic stroke, where any protective J-shape is forfeited by bingers. All curves are then multiplied by BINGEF which has the value of 1 in all cases except for condition classes 7, 8, 9, which account for motor vehicle collisions, unintentional injuries, and intentional injuries.

Usage

1
makeBingeRisk(im, bingef, ext_risk)

Arguments

im

string, Intermahp condition code

bingef

double, rescales injuries

ext_risk

continuous vector valued function as returned by makeExtrapolatedRisk

Value

a function whose values are binge modified. This affects conditions 5.2 and 5.5, ischaemic heart disease and stroke respectively, by removing a protective effect at low levels of consumption


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