calibrateSlopeInternal: Calibrate a loglinear slope

Description Usage Arguments Value Functions

Description

Calibrate a loglinear slope

Given a list that contains the true count among a given cohort of a wholly alocohol-attributable condition, the number of drinkers in that cohort, the conditions's IM code, and the gamma function detailing consumption among the cohort, this function calibrates a slope for a loglinear function that estimates the conditional probablity of developing the given condition. The function should be interpreted as conditional probability mass. I.e., the integral of the function over the relevant range is the probability that a drinker will be afflicted by an event of the given condition over the period of time that the given Count variable was collected.

Uses a nonlinear optimizer (COBYLA) to find a loglinear slope for the function f(x) = max(1, exp(k(x-t))) that mimizes the difference between integral(N_GAMMA * (f-1), 0.03, UB) and yearly prevalence (count/drinkers).

The goal is to produce a continuous analogue to the relative risk curve for conditions that are wholly attributable to alcohol. The assumption is made that such a condition has a loglinear thresholded (i.e. f(x)=1 for x<t) conditional probablity function on the interval of concern (0.03 to UB grams of ethanol/day, averaged over 1yr).

This conditional probability is used to portion a 1.00 AAF_TOTAL among the drinking population.

Usage

1
2
3
calibrateSlope(count, popn, p_cd, pcc, gamma_relation, lb, ub, threshold)

calibrateSlopeInternal(target, mass, threshold, ub)

Arguments

count

Total number of events among the given population

popn

Total number of persons in the given population

p_cd

Proportion of given population that are current drinkers

pcc

daily per capita consumption in grams

gamma_relation

relationship between mean and standard deviation of the gamma distribution that governs alcohol consumption. By Kehoe, use 1.171 for male populations and 1.258 for female populations.

lb

lower bound of consumption

ub

upper bound of consumption

threshold

lower bound of consumption at which condition occurs

target

Observed incidence to calibrate against

mass

population exposure mass function to calibrate against

Value

slope of loglinear conditional probability mass function for risk as a result of exposure

Functions


uvic-cisur/cisurwac documentation built on May 14, 2019, 11:11 a.m.