Learn R Programming

CVrisk

About the package

CVrisk is a package to calculate various cardiovascular disease risk scores.

Currently available risk scores

  • Framingham 2008 10-year ASCVD risk (model with lipid labs)
  • Framingham 2008 10-year ASCVD risk (model with BMI)
  • ACC/AHA 2013 10-year ASCVD risk
  • MESA 2015 10-year ASCVD risk (traditional risk factors)
  • MESA 2015 10-year ASCVD risk (using coronary artery calcium)

Coming soon

  • Reynolds 2007 10-year ASCVD risk in women
  • Framingham 2009 30-year ASCVD risk

Installation

# Install from CRAN
install.packages("CVrisk")

# Install the development version from GitHub:
# install.packages("devtools")
devtools::install_github("vcastro/CVrisk")

Usage

Calculate a single score:

library(CVrisk)
ascvd_10y_accaha(race = "aa", gender = "male", age = 55, 
   totchol = 213, hdl = 50, sbp = 140, 
   bp_med = FALSE, smoker=0, diabetes=0)
   

Calculate multiple scores for a dataframe and append scores to the dataframe:


compute_CVrisk(sample_data,
   age = "age", race = "race", gender = "gender", bmi = "BMI", sbp = "sbp",
   hdl = "hdl", totchol = "totchol", bp_med = "bp_med", smoker = "smoker",
   diabetes = "diabetes", lipid_med = "lipid_med",
   fh_heartattack = "fh_heartattack", cac = "cac"
)

Copy Link

Version

Install

install.packages('CVrisk')

Monthly Downloads

339

Version

1.1.1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Victor Castro

Last Published

August 19th, 2023

Functions in CVrisk (1.1.1)

ascvd_10y_accaha

ACC/AHA 2013 ASCVD risk score
mesa_coef

mesa_coef
chd_10y_mesa_cac

MESA 2015 CHD risk score with CAC
mesa_cac_coef

mesa_cac_coef
compute_CVrisk

Compute multiple CV risk scores
sample_data

Sample patient data
frs_simple_coef

Model coefficients for ASCVD 10y FRS simple model
ascvd_10y_frs_simple

Framingham 2008 ASCVD risk score (no lab measurement)
chd_10y_mesa

MESA 2015 CHD risk score
ascvd_10y_frs

Framingham 2008 ASCVD risk score (with lab measurement)
frs_coef

Model coefficients for ASCVD 10y FRS model
ascvd_pooled_coef

Model coefficients for ASCVD 10y ACC/AHA model
CVrisk-package

CVrisk: Compute Risk Scores for Cardiovascular Diseases