DAgostino: Assess risk using the method of D'Agostino et al. (2008)

DAgostino_wrapperR Documentation

Assess risk using the method of D'Agostino et al. (2008)

Description

Assess risk using the method of D'Agostino et al. (2008)

Usage

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)

Arguments

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

age

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

total_cholesterol

same as age, but for total cholesterol, in mg/dL

hdl

same as age, but for HDL, in mg/dL

systolic

same as age, but for systolic blood pressure, in mmHg

bp_treated

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

diabetes

same as bp_treated, but for the presence of diabetes

smoker

same asbp_treated, but for smoking status

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 x

tc_points

same as age_points but for total cholesterol

sbp_breaks

numeric vector specifying which blood pressure levels to cut at

sbp_points

same as age_points but for systolic blood pressure

x

a value on which to lookup a risk score

breaks

passed to base::cut

values

numeric vector giving the risk values assigned to each interval in breaks

result

output from risk_DAgostino

Note

Parameter descriptions have been inherited from cvd_risk, but only direct scalar values (i.e., not column names) are allowed for this function

References

D'Agostino et al. (2008)


PAutilities documentation built on Aug. 21, 2022, 9:05 a.m.