Title: | Compute Risk Scores for Cardiovascular Diseases |
---|---|
Description: | Calculate various cardiovascular disease risk scores from the Framingham Heart Study (FHS), the American College of Cardiology (ACC), and the American Heart Association (AHA) as described in D’agostino, et al (2008) <doi:10.1161/circulationaha.107.699579>, Goff, et al (2013) <doi:10.1161/01.cir.0000437741.48606.98>, and Mclelland, et al (2015) <doi:10.1016/j.jacc.2015.08.035>. |
Authors: | Victor Castro [aut, cre] |
Maintainer: | Victor Castro <[email protected]> |
License: | GPL-3 |
Version: | 1.1.1 |
Built: | 2024-11-11 03:47:23 UTC |
Source: | https://github.com/vcastro/cvrisk |
Computes 10-year risk for hard ASCVD event (defined as first occurrence of non-fatal myocardial infarction (MI), congestive heart disease (CHD) death, or fatal or nonfatal stroke).
ascvd_10y_accaha( race = "white", gender = c("male", "female"), age, totchol, hdl, sbp, bp_med, smoker, diabetes, ... )
ascvd_10y_accaha( race = "white", gender = c("male", "female"), age, totchol, hdl, sbp, bp_med, smoker, diabetes, ... )
race |
patient race (white, aa, other) |
gender |
patient gender (male, female) |
age |
patient age (years) |
totchol |
Total cholesterol (mg/dL) |
hdl |
HDL cholesterol (mg/dL) |
sbp |
Systolic blood pressure (mm Hg) |
bp_med |
Patient is on a blood pressure medication (1=Yes, 0=No) |
smoker |
Current smoker (1=Yes, 0=No) |
diabetes |
Diabetes (1=Yes, 0=No) |
... |
Additional predictors can be passed and will be ignored |
Estimated 10-Y Risk for hard ASCVD (percent)
Goff, David C., et al. "2013 ACC/AHA guideline on the assessment of cardiovascular risk: a report of the American College of Cardiology/American Heart Association Task Force on Practice Guidelines." Journal of the American College of Cardiology 63.25 Part B (2014): 2935-2959.
library(CVrisk) ascvd_10y_accaha( race = "aa", gender = "male", age = 55, totchol = 213, hdl = 50, sbp = 140, bp_med = 0, smoker = 0, diabetes = 0 )
library(CVrisk) ascvd_10y_accaha( race = "aa", gender = "male", age = 55, totchol = 213, hdl = 50, sbp = 140, bp_med = 0, smoker = 0, diabetes = 0 )
Computes 10-year risk for ASCVD event (coronary death, myocardial infarction (MI), coronary insufficiency, angina, ischemic stroke, hemorrhagic stroke, transient ischemic attack, peripheral artery disease, or heart failure).
ascvd_10y_frs( gender = c("male", "female"), age, hdl, totchol, sbp, bp_med, smoker, diabetes, ... )
ascvd_10y_frs( gender = c("male", "female"), age, hdl, totchol, sbp, bp_med, smoker, diabetes, ... )
gender |
patient gender (male, female) |
age |
patient age (years), between 30 and 74 |
hdl |
HDL cholesterol (mg/dL) |
totchol |
Total cholesterol (mg/dL) |
sbp |
Systolic blood pressure (mm Hg) |
bp_med |
Patient is on a blood pressure medication (1=Yes, 0=No) |
smoker |
Current smoker (1=Yes, 0=No) |
diabetes |
Diabetes (1=Yes, 0=No) |
... |
Additional predictors can be passed and will be ignored |
Estimated 10-Y Risk for hard ASCVD event (percent)
D’agostino, R.B., Vasan, R.S., Pencina, M.J., Wolf, P.A., Cobain, M., Massaro, J.M. and Kannel, W.B., 2008. General cardiovascular risk profile for use in primary care: the Framingham Heart Study. Circulation, 117(6), pp.743-753.
library(CVrisk) ascvd_10y_frs( gender = "male", age = 55, hdl = 50, totchol = 213, sbp = 140, bp_med = 0, smoker = 0, diabetes = 0 ) # 16.7
library(CVrisk) ascvd_10y_frs( gender = "male", age = 55, hdl = 50, totchol = 213, sbp = 140, bp_med = 0, smoker = 0, diabetes = 0 ) # 16.7
Computes 10-year risk for ASCVD event (coronary death, myocardial infarction (MI),coronary insufficiency, angina, ischemic stroke, hemorrhagic stroke, transient ischemic attack, peripheral artery disease, or heart failure).
ascvd_10y_frs_simple( gender = c("male", "female"), age, bmi, sbp, bp_med, smoker, diabetes, ... )
ascvd_10y_frs_simple( gender = c("male", "female"), age, bmi, sbp, bp_med, smoker, diabetes, ... )
gender |
patient gender (male, female) |
age |
patient age (years), between 30 and 74 |
bmi |
Body mass index (kg/m2) |
sbp |
Systolic blood pressure (mm Hg) |
bp_med |
Patient is on a blood pressure medication (1=Yes, 0=No) |
smoker |
Current smoker (1=Yes, 0=No) |
diabetes |
Diabetes (1=Yes, 0=No) |
... |
Additional predictors can be passed and will be ignored |
Estimated 10-Y Risk for hard ASCVD (percent)
D’agostino, R.B., Vasan, R.S., Pencina, M.J., Wolf, P.A., Cobain, M., Massaro, J.M. and Kannel, W.B., 2008. General cardiovascular risk profile for use in primary care: the Framingham Heart Study. Circulation, 117(6), pp.743-753.
library(CVrisk) ascvd_10y_frs_simple( gender = "male", age = 55, bmi = 30, sbp = 140, bp_med = 0, smoker = 0, diabetes = 0 ) # 16.7
library(CVrisk) ascvd_10y_frs_simple( gender = "male", age = 55, bmi = 30, sbp = 140, bp_med = 0, smoker = 0, diabetes = 0 ) # 16.7
A data set containing the 2013 ACC/AHA ASCVD 10-year risk pooled cohort coefficients
ascvd_pooled_coef
ascvd_pooled_coef
A data frame with 4 obs. and 17 variables:
Patient race, either white or aa
Patient gender, either female or male
Natural log of patient age
Natural log of patient age in years, squared
Natural log of total cholesterol level
Natural log of combined age and total cholesterol
Natural log of HDL level
Natural log of HDL and age
Natural log of treated systolic blood pressure
Natural log of treated systolic blood pressure and age
Natural log of untreated systolic blood pressure
Natural log of untreated systolic blood pressure and age
Smoking status
Natural log of smoking status and age
Diabetes status
Grouped mean
Baseline survival
Goff, David C., et al. "2013 ACC/AHA guideline on the assessment of cardiovascular risk: a report of the American College of Cardiology/American Heart Association Task Force on Practice Guidelines." Journal of the American College of Cardiology 63.25 Part B (2014): 2935-2959.
Computes 10-year risk for hard coronary heart disease (CHD) event (defined as first occurrence of myocardial infarction (MI), resuscitated cardiac arrest, CHD death, or revascularization with prior or concurrent adjudicated angina).
chd_10y_mesa( race = "white", gender = c("male", "female"), age, totchol = NA, hdl = NA, lipid_med = NA, sbp = NA, bp_med = NA, smoker = NA, diabetes = NA, fh_heartattack = NA, ... )
chd_10y_mesa( race = "white", gender = c("male", "female"), age, totchol = NA, hdl = NA, lipid_med = NA, sbp = NA, bp_med = NA, smoker = NA, diabetes = NA, fh_heartattack = NA, ... )
race |
patient race/ethnicity (white, aa, chinese, or hispanic) |
gender |
patient gender (male, female) |
age |
patient age (years), risk computed for 45-85 year olds |
totchol |
Total cholesterol (mg/dL) |
hdl |
HDL cholesterol (mg/dL) |
lipid_med |
Patient is on a hyperlipidemic medication (1=Yes, 0=No) |
sbp |
Systolic blood pressure (mm Hg) |
bp_med |
Patient is on a blood pressure medication (1=Yes, 0=No) |
smoker |
Current smoker (1=Yes, 0=No) |
diabetes |
Diabetes (1=Yes, 0=No) |
fh_heartattack |
Family history of heart attacks (parents, siblings ,or children) (1=Yes, 0=No) |
... |
Additional predictors can be passed and will be ignored |
Estimated 10-Y Risk for hard CAD event (percent)
McClelland RL, Jorgensen NW, Budoff M, et al. 10-Year Coronary Heart Disease Risk Prediction Using Coronary Artery Calcium and Traditional Risk Factors: Derivation in the MESA (Multi-Ethnic Study of Atherosclerosis) With Validation in the HNR (Heinz Nixdorf Recall) Study and the DHS (Dallas Heart Study). J Am Coll Cardiol. 2015;66(15):1643-1653. doi:10.1016/j.jacc.2015.08.035
library(CVrisk) chd_10y_mesa( race = "aa", gender = "male", age = 55, totchol = 213, hdl = 50, sbp = 140, lipid_med = 0, bp_med = 1, smoker = 0, diabetes = 0, fh_heartattack = 0 )
library(CVrisk) chd_10y_mesa( race = "aa", gender = "male", age = 55, totchol = 213, hdl = 50, sbp = 140, lipid_med = 0, bp_med = 1, smoker = 0, diabetes = 0, fh_heartattack = 0 )
Computes 10-year risk for hard coronary heart disease (CHD) event (defined as first occurrence of myocardial infarction (MI), resuscitated cardiac arrest, CHD death, or revascularization with prior or concurrent adjudicated angina). Includes coronary artery calcification score for more precise estimate of risk
chd_10y_mesa_cac( race = "white", gender = c("male", "female"), age, totchol = NA, hdl = NA, lipid_med = NA, sbp = NA, bp_med = NA, smoker = NA, diabetes = NA, fh_heartattack = NA, cac = NA, ... )
chd_10y_mesa_cac( race = "white", gender = c("male", "female"), age, totchol = NA, hdl = NA, lipid_med = NA, sbp = NA, bp_med = NA, smoker = NA, diabetes = NA, fh_heartattack = NA, cac = NA, ... )
race |
patient race/ethnicity (white, aa, chinese, or hispanic) |
gender |
patient gender (male, female) |
age |
patient age (years), risk computed for 45-85 year olds |
totchol |
Total cholesterol (mg/dL) |
hdl |
HDL cholesterol (mg/dL) |
lipid_med |
Patient is on a hyperlipidemic medication (1=Yes, 0=No) |
sbp |
Systolic blood pressure (mm Hg) |
bp_med |
Patient is on a blood pressure medication (1=Yes, 0=No) |
smoker |
Current smoker (1=Yes, 0=No) |
diabetes |
Diabetes (1=Yes, 0=No) |
fh_heartattack |
Family history of heart attacks (parents, siblings ,or children) (1=Yes, 0=No) |
cac |
Coronary artery calcification (Agatston units) |
... |
Additional predictors can be passed and will be ignored |
Estimated 10-Y Risk for hard CAD event (percent)
McClelland RL, Jorgensen NW, Budoff M, et al. 10-Year Coronary Heart Disease Risk Prediction Using Coronary Artery Calcium and Traditional Risk Factors: Derivation in the MESA (Multi-Ethnic Study of Atherosclerosis) With Validation in the HNR (Heinz Nixdorf Recall) Study and the DHS (Dallas Heart Study). J Am Coll Cardiol. 2015;66(15):1643-1653. doi:10.1016/j.jacc.2015.08.035
library(CVrisk) chd_10y_mesa_cac( race = "aa", gender = "male", age = 55, totchol = 213, hdl = 50, sbp = 140, lipid_med = 0, bp_med = 1, smoker = 0, diabetes = 0, fh_heartattack = 0, cac = 0 )
library(CVrisk) chd_10y_mesa_cac( race = "aa", gender = "male", age = 55, totchol = 213, hdl = 50, sbp = 140, lipid_med = 0, bp_med = 1, smoker = 0, diabetes = 0, fh_heartattack = 0, cac = 0 )
Compute multiple CV risk scores
compute_CVrisk( df, scores = c("ascvd_10y_accaha", "ascvd_10y_frs", "ascvd_10y_frs_simple", "chd_10y_mesa", "chd_10y_mesa_cac"), age, gender, race, sbp = NULL, bmi = NULL, hdl = NULL, totchol = NULL, bp_med = NULL, smoker = NULL, diabetes = NULL, lipid_med = NULL, fh_heartattack = NULL, cac = NULL )
compute_CVrisk( df, scores = c("ascvd_10y_accaha", "ascvd_10y_frs", "ascvd_10y_frs_simple", "chd_10y_mesa", "chd_10y_mesa_cac"), age, gender, race, sbp = NULL, bmi = NULL, hdl = NULL, totchol = NULL, bp_med = NULL, smoker = NULL, diabetes = NULL, lipid_med = NULL, fh_heartattack = NULL, cac = NULL )
df |
input dataframe |
scores |
scores to compute, default is all scores |
age |
patient age in years (required for all scores) |
gender |
patient gender (male or female) |
race |
character string for patient race (white, aa, other) column |
sbp |
character string of systolic blood pressure (in mm Hg) column |
bmi |
character string of Body mass index (kg/m2) column |
hdl |
character string of HDL column |
totchol |
character string of total cholesterol column |
bp_med |
character string of blood pressure medication column |
smoker |
character string of smoking status column |
diabetes |
character string of diabetes status column |
lipid_med |
character string of lipid medication column |
fh_heartattack |
character string of fh of heart attack status column |
cac |
character string of cac column |
input data frame with risk score results appended as columns
library(CVrisk) 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" )
library(CVrisk) 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" )
A data set containing the Framingham risk score coefficients (full model with lab features)
frs_coef
frs_coef
A data frame with 2 obs. and 10 variables:
Patient gender, either female or male
Natural log of patient age
Natural log of total cholesterol level
Natural log of HDL level
Natural log of untreated systolic blood pressure
Natural log of treated systolic blood pressure
Smoking status
Diabetes status
Grouped mean
Baseline survival
D’agostino, R.B., Vasan, R.S., Pencina, M.J., Wolf, P.A., Cobain, M., Massaro, J.M. and Kannel, W.B., 2008. General cardiovascular risk profile for use in primary care. Circulation, 117(6), pp.743-753.
A data set containing the Framingham risk score coefficients (simple model without lab features)
frs_simple_coef
frs_simple_coef
A data frame with 2 obs. and 10 variables:
Patient gender, either female or male
Natural log of patient age (years)
Natural log of body mass index kg/m2
Natural log of untreated systolic blood pressure
Natural log of treated systolic blood pressure
Smoking status
Diabetes status
Grouped mean
Baseline survival
D’agostino, R.B., Vasan, R.S., Pencina, M.J., Wolf, P.A., Cobain, M., Massaro, J.M. and Kannel, W.B., 2008. General cardiovascular risk profile for use in primary care. Circulation, 117(6), pp.743-753.
A data set containing the MESA risk score coefficients (model with CAC)
mesa_cac_coef
mesa_cac_coef
A data frame with 1 obs. and 15 variables:
Coefficient for age
Coefficient for male gender
Coefficient for Chinese race
Coefficient for African American race
Coefficient for Hispanic race
Coefficient for diabetes status
Coefficient for current smoker
Coefficient for total cholesterol level
Coefficient for HDL level
Coefficient for antihyperlipidemic medication
Coefficient for systolic blood pressure
Coefficient for antihypertensive medication
Coefficient for family history of heart attacks
Coefficient for ln(coronary artery calcification (units)+1)
Baseline survival
McClelland RL, Jorgensen NW, Budoff M, et al. 10-Year Coronary Heart Disease Risk Prediction Using Coronary Artery Calcium and Traditional Risk Factors: Derivation in the MESA (Multi-Ethnic Study of Atherosclerosis) With Validation in the HNR (Heinz Nixdorf Recall) Study and the DHS (Dallas Heart Study). J Am Coll Cardiol. 2015;66(15):1643-1653. doi:10.1016/j.jacc.2015.08.035
A data set containing the MESA risk score coefficients (model without CAC)
mesa_coef
mesa_coef
A data frame with 1 obs. and 14 variables:
Coefficient for age
Coefficient for male gender
Coefficient for Chinese race
Coefficient for African American race
Coefficient for Hispanic race
Coefficient for diabetes status
Coefficient for current smoker
Coefficient for total cholesterol level
Coefficient for HDL level
Coefficient for antihyperlipidemic medication
Coefficient for systolic blood pressure
Coefficient for antihypertensive medication
Coefficient for family history of heart attacks
Baseline survival
McClelland RL, Jorgensen NW, Budoff M, et al. 10-Year Coronary Heart Disease Risk Prediction Using Coronary Artery Calcium and Traditional Risk Factors: Derivation in the MESA (Multi-Ethnic Study of Atherosclerosis) With Validation in the HNR (Heinz Nixdorf Recall) Study and the DHS (Dallas Heart Study). J Am Coll Cardiol. 2015;66(15):1643-1653. doi:10.1016/j.jacc.2015.08.035
A data set containing sample patient data
sample_data
sample_data
A data frame with 3 obs. and 10 variables:
age in years
Patient gender
race
Body mass index (kg/m2)
systolic blood pressure
HDL
Total cholesterol
Patient is on blood pressure medication
Smoking status
Diabetes status
Patient is on hyperlipidemic medication
Family history of heart attack
Coronary artery calcification score