pretestcad

R Package for Pretest Probability for Coronary Artery Disease

https://github.com/jauntyjjs/pretestcad

Science Score: 39.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 30 DOI reference(s) in README
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.8%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

R Package for Pretest Probability for Coronary Artery Disease

Basic Info
Statistics
  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created almost 3 years ago · Last pushed 11 months ago
Metadata Files
Readme Changelog License

README.md

pretestcad Hex logo of R package pretestcad. Logo is a picture of a coronary artery with partial blockage.

R-CMD-check Codecov test
coverage <!-- badges: end -->

R package used to calculate different PreTest Probability (PTP) scores for obstructive Coronary Artery Disease (CAD).

As diagnosis of CAD involves a costly and invasive coronary angiography procedure for patients, having a reliable PTP for CAD helps doctors to make better decisions during patient management. This ensures high risk patients can be diagnosed and treated early for CAD while avoiding unnecessary testing for low-risk patients.

Table of Content

:arrow_down: Installation

Install the development version from GitHub with:

``` r

install.packages("pak")

pak::pak("JauntyJJS/pretestcad") ```

Back to top

:anatomical_heart: Currently available pretest probability scores

  • 2024 ESC Guidelines PTP Score
  • 2022 Local Assessment of the Heart (LAH) clinical and extended model
  • 2021 Predictive Risk scorE for CAD In Southeast Asians with chEst pain (PRECISE) simple and clinical model
  • 2021 AHA/ACC Guidelines PTP Score
  • 2020 Winther et. al. Basic, RF-CL and CACS-CL PTP
  • 2019 ESC Guidelines PTP Score
  • 2019 Reeh et. al. basic and clinical model
  • 2017 PROMISE Minimal-Risk Score
  • 2015 CONFIRM Risk Score
  • 2013 ESC Guidelines PTP Score
  • 2012 CAD Consortium 2 (CAD2) Basic, Clinical and Clinical with Coronary Calcium Score (CCS) PTP
  • 2012 ACCF/AHA/ACP/AATS/PCNA/SCAI/STS Guidelines PTP Score
  • 2011 CAD Consortium 1 (CAD1) PTP (Updated Diamond-Forrester PTP Score)
  • 1993 Duke Clinical Score for Significant and Severe CAD
  • 1979 Diamond-Forrester PTP

Back to top

:computer: Getting Started

2024 ESC Guidelines PTP Score

Here is how you can calculate the score using a single patient.

``` r

30 female with symptom score of 0 and 0 risk factors

calculateesc2024fig4ptp( age = 30, sex = "female", chestpaintype = "no chest pain", havedyspnoea = "no", havefamilyhistory = "no", havesmokinghistory = "no", havedyslipidemia = "no", havehypertension = "no", have_diabetes = "no", output = "numeric" ) ```

[1] 0

r 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", output = "grouping" )

[1] "very low"

Here is how you can calculate the score using for multiple patients.

``` r patientdata <- tibble::tribble( ~uniqueid, ~age, ~sex, ~chestpaintype, ~havedyspnoea, ~havefamilyhistory, ~havesmokinghistory, ~havedyslipidemia, ~havehypertension, ~havediabetes, "45 year old male with typical chest pain, no dyspnoea, hypertension and diabetes", 45, "male", "typical", "no",
"no", "no", "no", "yes", "yes", "70 year old female with no chest pain, dyspnoea, have smoking history (past or current smoker) and dyslipidemia", 70, "female", "no chest pain", "yes",
"no", "yes", "yes", "no", "no" )

riskdata <- patientdata |> dplyr::mutate( esc2024ptpgroup = purrr::pmapchr( .l = list( age = .data[["age"]], sex = .data[["sex"]], chestpaintype = .data[["chestpaintype"]], havedyspnoea = .data[["havedyspnoea"]], havefamilyhistory = .data[["havefamilyhistory"]], havesmokinghistory = .data[["havesmokinghistory"]], havedyslipidemia = .data[["havedyslipidemia"]], havehypertension = .data[["havehypertension"]], havediabetes = .data[["havediabetes"]], output = "grouping" ), .f = pretestcad::calculateesc2024fig4ptp, ), esc2024ptpnumeric = purrr::pmapint( .l = list( age = .data[["age"]], sex = .data[["sex"]], chestpaintype = .data[["chestpaintype"]], havedyspnoea = .data[["havedyspnoea"]], havefamilyhistory = .data[["havefamilyhistory"]], havesmokinghistory = .data[["havesmokinghistory"]], havedyslipidemia = .data[["havedyslipidemia"]], havehypertension = .data[["havehypertension"]], havediabetes = .data[["havediabetes"]], output = "numeric" ), .f = pretestcad::calculateesc2024fig4ptp ), esc2024ptppercent = purrr::pmapchr( .l = list( age = .data[["age"]], sex = .data[["sex"]], chestpaintype = .data[["chestpaintype"]], havedyspnoea = .data[["havedyspnoea"]], havefamilyhistory = .data[["havefamilyhistory"]], havesmokinghistory = .data[["havesmokinghistory"]], havedyslipidemia = .data[["havedyslipidemia"]], havehypertension = .data[["havehypertension"]], havediabetes = .data[["havediabetes"]], output = "percentage" ), .f = pretestcad::calculateesc2024fig4ptp ) ) |> dplyr::select( c("uniqueid", "esc2024ptpgroup", "esc2024ptpnumeric", "esc2024ptp_percent") )

print(risk_data) ```

# A tibble: 2 × 4
  unique_id         esc_2024_ptp_group esc_2024_ptp_numeric esc_2024_ptp_percent
  <chr>             <chr>                             <int> <chr>               
1 45 year old male… moderate                             20 20%                 
2 70 year old fema… low                                  10 10%                 

Back to top

Owner

  • Name: Jeremy Selva
  • Login: JauntyJJS
  • Kind: user
  • Location: Singapore, SG
  • Company: National Heart Centre Singapore

GitHub Events

Total
  • Watch event: 1
  • Delete event: 1
  • Push event: 71
  • Create event: 3
Last Year
  • Watch event: 1
  • Delete event: 1
  • Push event: 71
  • Create event: 3

Packages

  • Total packages: 1
  • Total downloads:
    • cran 437 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 2
  • Total maintainers: 1
cran.r-project.org: pretestcad

Pretest Probability for Coronary Artery Disease

  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 437 Last month
Rankings
Dependent packages count: 26.5%
Dependent repos count: 32.6%
Average: 48.6%
Downloads: 86.7%
Maintainers (1)
Last synced: 10 months ago

Dependencies

.github/workflows/pkgdown.yaml actions
  • JamesIves/github-pages-deploy-action v4.4.1 composite
  • actions/checkout v3 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION cran
  • dplyr * imports
  • spelling * suggests