makeExtrapolatedRisk: Factory for linearly extrapolated well-defined rel. risk

Description Usage Arguments Value

View source: R/factories-rr.R

Description

Produces an extrapolation-modified relative risk curve. Given a relative risk curve and some metadata, produces a risk curve that has the desired extrapolation behaviour beyond 150 g/day, or 100 g/day for IHD.

Usage

1
makeExtrapolatedRisk(base_risk, x2, y2, slope)

Arguments

base_risk

continuous function in x as returned by makeBaseRisk

x2

extrapolate after x = x2

y2

y2 = base_risk(x2)

slope

slope of the extrapolation

Value

a function whose values after x2 are are linearly extrapolated (see InterMAHP guide for details)


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