fhrisk_10y | R Documentation |
This functions calculates the 10-year cardiovascular risk based on the Framingham Risk Score. I used data from Wikipedia.
fhrisk_10y( gender, age, cholesterol, smoke, hdl, sysbp, bp_treated, mg_dl = TRUE )
gender |
"male" or "female" |
age |
numeric |
cholesterol |
numeric, default is mg/dL |
smoke |
logical whether is smoking or not |
hdl |
numeric, default is mg/dL |
sysbp |
numeric, systolic blood pressure |
bp_treated |
logical indicating whether received treatment for blood pressure |
mg_dl |
default is TRUE, can be set to FALSE to calculate mmol/L |
character oject indicating 10
fhrisk_10y(gender = "male", age = 60, cholesterol = 7, hdl = 1.2, sysbp = 120, bp_treated = TRUE, mg_dl = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.