Description Usage Arguments Details Value Examples
View source: R/framinghamRiskEquation.R
Calculate cardiovascular disease risk according to Framingham Risk Equation
1 | framingham_riskequation(df, years = 5, outcome = "CVD")
|
df |
a dataframe, which must include the following columns/fields:
|
years |
number of years to predict (from 4 to 12). default is 5 years. |
outcome |
(default is "CVD") "CHD" - coronary heart disease. includes myocardial infarction, death from coronary heart disease plus angina pectoris and coronary insufficiency. "CVD" cardiovascular disease (the default) includes coronary heart disease, stroke (including transient ischaemia), congestive heart failure and peripheral vascular disease. |
Equations and examples sourced from:
"Guidelines for the management of Absolute cardiovascular disease risk. 2012" by the National Vascular Disease Prevention Alliance of Australia. http://www.cvdcheck.org.au/pdf/Absolute_CVD_Risk_Full_Guidelines.pdf
"Cardiovascular Disease Risk Profiles" by Keaven M. Anderson, Patricia M. Odell, Peter W.F. Wilson, William B. Kannel in 'American Heart Journal' 1991; 121:293-298
"An Updated Coronary Risk Profile - A Statement for Health Professionals" by Keaven M. Anderson, Peter W.F. Wilson, Patricia M. Odell, William B. Kannel in AHA (American Heart Association) Medical/Scientific Statement, sourced from http://ahajournals.org
a dataframe
InternalID - the internalID of the person's row in the df (dataframe) parameter
frisk - numeric (a number, or 'NA' if not enough information to computer),
friskHI - either 'NA' or '>15%'. >15%' are groups considered equivalent risk to already having ischaemic heart disease.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | framingham_riskequation(data.frame(
InternalID = 1, BP = "135/80", Sex = "Female",
Age = 55,
SmokingStatus = "Smoker", CholHDLRatio = 230 / 48, Diabetes = TRUE, LVH = FALSE,
CardiovascularDisease = FALSE, PersistentProteinuria = FALSE, eGFRValue = NA,
eGFRUnits = NA, UrineAlbuminValue = NA, UrineAlbuminUnits = NA,
FamilialHypercholesterolaemia = NA, Cholesterol = 5.96, Ethnicity = NA
),
outcome = "CHD", years = 10
)
# this comes from "Cardiovascular disease risk profiles" (Anderson 1991)
# the worked answer in the paper is 0.22. this function returns 0.2189125
# the same risk-factors with outcome = "CVD" and years = 5 returns 0.180
# (cvdcheck.org.au reports 18%)
# the same risk-factors except Sex = "Male" with outcome = "CVD" and years = 5 returns 0.202
# (cvdcheck.org.au reports 20%)
framingham_riskequation(data.frame(
InternalID = 2, BP = "130/80", Sex = "Male",
Age = 55,
SmokingStatus = "Smoker", CholHDLRatio = 240 / 45, Diabetes = FALSE, LVH = FALSE,
CardiovascularDisease = FALSE, PersistentProteinuria = FALSE, eGFRValue = NA,
eGFRUnits = NA, UrineAlbuminValue = NA, UrineAlbuminUnits = NA,
FamilialHypercholesterolaemia = NA, Cholesterol = 6.22, Ethnicity = NA
),
outcome = "CHD", years = 10
)
# this comes from "An Updated Coronary Risk Profile" (Anderson 1991)
# the worked answer in the paper is 0.192, this function returns 0.1919
# the same risk-factors with outcome = "CVD" and years = 5 returns 0.133
# (cvdcheck.org.au reports 13%)
# the same risk-factors except LVH = TRUE (outcome = CVD, years = 5) returns 0.211
# (cvdcheck.org.au reports 21%)
framingham_riskequation(data.frame(
InternalID = 3, BP = "130/80", Sex = "Female",
Age = 55,
SmokingStatus = "Smoker", CholHDLRatio = 240 / 45, Diabetes = FALSE, LVH = FALSE,
CardiovascularDisease = FALSE, PersistentProteinuria = FALSE, eGFRValue = NA,
eGFRUnits = NA, UrineAlbuminValue = NA, UrineAlbuminUnits = NA,
FamilialHypercholesterolaemia = NA, Cholesterol = 6.22, Ethnicity = NA
),
outcome = "CHD", years = 10
)
# this comes from "An Updated Coronary Risk Profile" (Anderson 1991)
# the worked answer in the paper is 0.135, this function returns 0.1349
# the same risk-factors with outcome = "CVD" and years = 5 returns 0.088
# (cvdcheck.org.au reports 9%)
# the same risk-factors except LVH = TRUE (outcome = CVD, years = 5) returns 0.150
# (cvdcheck.org.au reports 15%)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.