calculate_esc_2024_fig_4_ptp {pretestcad} | R Documentation |
Calculate ESC 2024 PTP for obstructive CAD
Description
This function returns a patient's pre-test Probability (PTP) of obstructive coronary artery disease (CAD) based on the European Society of Cardiology (ESC) 2024 guidelines.
Usage
calculate_esc_2024_fig_4_ptp(
age,
sex,
chest_pain_type,
have_dyspnoea,
have_family_history,
have_smoking_history,
have_dyslipidemia,
have_hypertension,
have_diabetes,
allow_na_symptom_score = TRUE,
max_na_num_of_rf = 0,
output = c("grouping", "numeric", "percentage")
)
Arguments
age |
Input integer value to indicate the age of the patient. |
sex |
Input characters (female, male) to indicate the sex of the patient.
|
chest_pain_type |
Input characters (no chest pain, typical, atypical, nonanginal) to indicate the chest pain characteristics of the patient.
|
have_dyspnoea |
Input characters (no, yes) to indicate if the patient only has dyspnoea symptoms.
|
have_family_history |
Input characters (no, yes) to indicate if the patient has a family history of CAD.
|
have_smoking_history |
Input characters (no, yes) to indicate if the patient has a smoking history (current or past smoker).
|
have_dyslipidemia |
Input characters (no, yes) to indicate if the patient has dyslipidemia.
|
have_hypertension |
Input characters (no, yes) to indicate if the patient has hypertension.
|
have_diabetes |
Input characters (no, yes) to indicate if the patient has diabetes.
|
allow_na_symptom_score |
A logical evaluating to |
max_na_num_of_rf |
Input integer 0 to 5 to indicate the maximum number of
missing risk factors to tolerate before outputting an |
output |
Input text to indicate the how pre-test probability results be expressed Default: c("grouping", "numeric", "percentage")
|
Value
An integer, percentage or category representing the patient's PTP for obstructive CAD
based on the ESC 2024 guidelines.
See parameter option output
for more information.
Examples
# 30 female with symptom score of 0 and 0 risk factors
calculate_esc_2024_fig_4_ptp(
age = 30,
sex = "female",
chest_pain_type = "no chest pain",
have_dyspnoea = "no",
have_family_history = "no",
have_smoking_history = "no",
have_dyslipidemia = "no",
have_hypertension = "no",
have_diabetes = "no",
allow_na_symptom_score = TRUE,
max_na_num_of_rf = 0,
output = "percentage"
)