DAgostino_wrapper | R Documentation |
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)
sex |
character scalar indicating either sex for one person (i.e.,
|
age |
either a numeric scalar indicating age for one person, or a
character scalar indicating the name of the column in |
total_cholesterol |
same as |
hdl |
same as |
systolic |
same as |
bp_treated |
either a logical scalar indicating whether a person is
taking blood pressure medication, or a character scalar pointing to the
column in |
diabetes |
same as |
smoker |
same as |
points |
logical. Return as points (default) or risk percentage? |
age_points |
numeric vector giving the risk values assigned to each age
group. Used as a lookup reference for |
tc_points |
same as |
sbp_breaks |
numeric vector specifying which blood pressure levels to cut at |
sbp_points |
same as |
x |
a value on which to lookup a risk score |
breaks |
passed to |
values |
numeric vector giving the risk values assigned to each interval
in |
result |
output from |
Parameter descriptions have been inherited from cvd_risk
,
but only direct scalar values (i.e., not column names) are allowed for this
function
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.