# 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 2022 Local Assessment of the Heart (LAH) extended model.

Usage

calculate_lah_2022_extended_ptp(
  age,
  sex,
  chest_pain_type,
  have_diabetes,
  have_hypertension,
  have_dyslipidemia,
  have_smoking_history,
  coronary_calcium_score
)

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).

coronary_calcium_score

Input non-negative numeric to indicate the total coronary calcium score of the patient.

Value

A numeric value representing the patient's PTP for obstructive CAD based on the 2022 Local Assessment of the Heart (LAH) extended model.

Details

The predictive model is based on patients a mixed Asian cohort within Singapore with stable chest pain.

Examples

# 40 year old female with typical chest pain,
# diabetes but no hypertension, dyslipidemia,
# a non-smoker and a coronary calcium score of 0
calculate_lah_2022_extended_ptp(
    age = 40,
    sex = "female",
    chest_pain_type = "typical",
    have_diabetes = "yes",
    have_hypertension = "no",
    have_dyslipidemia = "no",
    have_smoking_history = "no",
    coronary_calcium_score = 0

)
#> [1] 0.01623848