calculate_esc_2019_ptp {pretestcad} | R Documentation |
Calculate ESC 2019 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) 2019 guidelines.
Usage
calculate_esc_2019_ptp(
age,
sex,
have_dyspnoea,
chest_pain_type,
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.
|
have_dyspnoea |
Input characters (no, yes) to indicate if the patient only has dyspnoea symptoms.
|
chest_pain_type |
Input characters (no chest pain, typical, atypical, nonanginal) to indicate the chest pain characteristics of the patient.
|
output |
Input text to indicate the how pre-test probability results be expressed Default: c("grouping", "numeric", "percentage")
|
Details
The predictive model used to create the guidelines are based on patients from European countries with low cardiovascular disease (CVD) risk.
If the patient has both dyspnoea and a particular chest pain type (typical, atypical, nonanginal), The chest pain type will take precedence over dyspnoea.
Value
An integer, percentage or category representing the patient's PTP for obstructive CAD
based on the ESC 2019 guidelines.
See parameter option output
for more information.
Examples
# 35 year old female with typical chest pain
calculate_esc_2019_ptp(
age = 35,
sex = "female",
have_dyspnoea = "no",
chest_pain_type = "typical",
output = "percentage"
)
# 75 year old male with only dyspnoea
calculate_esc_2019_ptp(
age = 75,
sex = "male",
have_dyspnoea = "yes",
chest_pain_type = "no chest pain",
output = "percentage"
)