calculate_dcs_1993_vascular_disease_index {pretestcad} | R Documentation |
Calculate The Vascular Disease Index For Duke Clinical Score 1993
Description
A function used to calculate the patient's vascular disease index. This is used to calculate the likelihood of severe coronary artery disease in the Duke Clinical Score 1993 paper.
Usage
calculate_dcs_1993_vascular_disease_index(
have_peripheral_vascular_disease,
have_cerebrovascular_disease,
have_carotid_bruits,
max_na = 0
)
Arguments
have_peripheral_vascular_disease |
Input characters (no, yes) to indicate if the patient has peripheral vascular disease.
|
have_cerebrovascular_disease |
Input characters (no, yes) to indicate if the patient has cerebrovascular disease.
|
have_carotid_bruits |
Input characters (no, yes) to indicate if the patient has carotid bruits.
|
max_na |
Input integer 0 to 3 to indicate the maximum number of
missing disease history to tolerate before outputting an |
Value
An integer indicating the patient's vascular disease index.
It can also be NA
if the number of missing disease history exceeds the max_na
input value.
Examples
calculate_dcs_1993_vascular_disease_index(
have_peripheral_vascular_disease = "yes",
have_cerebrovascular_disease = "yes",
have_carotid_bruits = "no"
)
calculate_dcs_1993_vascular_disease_index(
have_peripheral_vascular_disease = NA,
have_cerebrovascular_disease = "yes",
have_carotid_bruits = "no",
max_na = 0
)
calculate_dcs_1993_vascular_disease_index(
have_peripheral_vascular_disease = NA,
have_cerebrovascular_disease = "yes",
have_carotid_bruits = "no",
max_na = 1
)