# https://github.com/r-lib/pkgdown/issues/2704

Skip to contents

This function returns a patient's pre-test probability (PTP) of obstructive coronary artery disease based on the 2012 CAD Consortium 2 (CAD2) clinical model.

Usage

calculate_cad2_2012_clinical_ptp(
  age,
  sex,
  chest_pain_type,
  have_diabetes,
  have_hypertension,
  have_dyslipidemia,
  have_smoking_history
)

Arguments

age

Input numeric value to indicate the age of the patient.

sex

Input characters (female, male) to indicate the sex of the patient.

  • female

  • male

chest_pain_type

Input characters (typical, atypical, nonanginal) to indicate the chest pain characteristics of the patient.

  • typical stands for the patient having typical chest pain.

  • atypical stands for the patient having atypical chest pain.

  • nonanginal stands for the patient having nonanginal or non-specific chest pain.

have_diabetes

Input characters (no, yes) to indicate if the patient only has diabetes.

  • no stands for not having diabetes.

  • yes stands for having diabetes.

have_hypertension

Input characters (no, yes) to indicate if the patient only has hypertension.

  • no stands for not having hypertension.

  • yes stands for having a hypertension.

have_dyslipidemia

Input characters (no, yes) to indicate if the patient only has dyslipidemia.

  • no stands for not having dyslipidemia.

  • yes stands for having a dyslipidemia.

have_smoking_history

Input characters (no, yes) to indicate if the patient only has a smoking history (current or past smoker).

  • no stands for not having a smoking history (non-smoker).

  • yes stands for having a smoking history (current or past smoker).

Value

A numeric value representing the patient's PTP for obstructive CAD based on the 2012 CAD Consortium 2 (CAD2) clinical model.

Details

The predictive model is based on patients from 18 hospitals in Europe and the United States.

The 2012 CAD Consortium 2 (CAD2) PTP models are as follows:

alt="2012 CAD Consortium 2 pre-test probabilities of obstructive coronary artery disease model."CAD Consortium 2 (CAD2) pre-test probabilities (PTP) of obstructive coronary artery disease model taken from Tessa Genders et. al. from British Medical Journal is licensed under CC BY-NC 4.0.

Examples

# 40 year old female with typical chest pain,
# diabetes but no hypertension, dyslipidemia
# and a non-smoker
calculate_cad2_2012_clinical_ptp(
    age = 40,
    sex = "female",
    chest_pain_type = "typical",
    have_diabetes = "yes",
    have_hypertension = "no",
    have_dyslipidemia = "no",
    have_smoking_history = "no"

)
#> [1] 0.06691957