Assess risk using the method of D'Agostino et al. (2008)
DAgostino_wrapper(
sex,
age,
total_cholesterol,
hdl,
systolic,
bp_treated,
diabetes,
smoker,
points = TRUE
)risk_DAgostino(
age,
total_cholesterol,
hdl,
systolic,
age_points,
tc_points,
sbp_breaks,
sbp_points,
diabetes,
smoker
)
get_risk(x, breaks, values)
DAgostino_raw(result, sex)
character scalar indicating either sex for one person (i.e.,
male
or female
), or a column name in x
containing sex
values for multiple people
either a numeric scalar indicating age for one person, or a
character scalar indicating the name of the column in x
that
contains age information. Units are years
same as age
, but for total cholesterol, in mg/dL
same as age
, but for HDL, in mg/dL
same as age
, but for systolic blood pressure, in mmHg
either a logical scalar indicating whether a person is
taking blood pressure medication, or a character scalar pointing to the
column in x
that contains the same information for multiple people
same as bp_treated
, but for the presence of diabetes
same asbp_treated
, but for smoking status
logical. Return as points (default) or risk percentage?
numeric vector giving the risk values assigned to each age
group. Used as a lookup reference for x
same as age_points
but for total cholesterol
numeric vector specifying which blood pressure levels to cut at
same as age_points
but for systolic blood pressure
a value on which to lookup a risk score
passed to base::cut
numeric vector giving the risk values assigned to each interval
in breaks
output from risk_DAgostino