calculate_dcs_1993_risk_factor_index {pretestcad} | R Documentation |
Calculate The Risk Factor Index For Duke Clinical Score 1993
Description
A function used to calculate the patient's risk factor index. This is used to calculate the likelihood of severe coronary artery disease in the Duke Clinical Score 1993 paper.
Usage
calculate_dcs_1993_risk_factor_index(
have_hypertension,
have_dyslipidemia,
have_diabetes,
max_na = 0
)
Arguments
have_hypertension |
Input characters (no, yes) to indicate if the patient has hypertension.
|
have_dyslipidemia |
Input characters (no, yes) to indicate if the patient has dyslipidemia.
|
have_diabetes |
Input characters (no, yes) to indicate if the patient has diabetes.
|
max_na |
Input integer 0 to 3 to indicate the maximum number of
missing risk factors to tolerate before outputting an |
Value
An integer indicating the patient's risk factor index.
It can also be NA
if the number of missing risk factors exceeds the max_na
input value.
Examples
calculate_dcs_1993_risk_factor_index(
have_hypertension = "yes",
have_dyslipidemia = "yes",
have_diabetes = "no"
)
calculate_dcs_1993_risk_factor_index(
have_hypertension = NA,
have_dyslipidemia = "yes",
have_diabetes = "no",
max_na = 0
)
calculate_dcs_1993_risk_factor_index(
have_hypertension = NA,
have_dyslipidemia = "yes",
have_diabetes = "no",
max_na = 1
)