Description Usage Arguments Details Value Examples
calc_card_10
returns 10 years cardivascular relative risk score,
1 |
data |
A dataframe |
gender |
A character |
age |
A number |
bmi |
A number |
hdl |
A number |
cholesterol |
A number |
sbp |
A number |
is_sbp_under_treatment |
A boolean |
smoking_status |
A boolean |
diabetes_status |
A boolean |
This package uses the widely used framingham risk scoring algorithm used to determine an individual's chances of developing cardiovascular disease. This package gives an estimate of the probability that a person will develop cardiovascular disease within a specified amount of time (10 years)
framingham cardivascular 10 years risk score data
and ...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # simulate patients data
df <- data.frame(age=sample(30:70,100,rep=TRUE),
gender=sample(c("M","F"),100,rep=TRUE),
bmi=sample(16:48, rep = TRUE),
hdl=sample(10:100,100,rep=TRUE),
chl=sample(100:400,100,rep=TRUE),
sbp=sample(90:200,100,rep=TRUE),
isSbpTreated=sample(c(TRUE,FALSE),100,rep=TRUE),
smoking=sample(c(TRUE,FALSE),100,rep=TRUE),
diabetes=sample(c(TRUE,FALSE),100,rep=TRUE)
)
# call frisk function
calc_card_10(df, age="age", gender="gender", cholesterol="chl",
hdl="hdl", sbp="sbp", is_sbp_under_treatment="isSbpTreated",
smoking_status="smoking", diabetes_status="diabetes"
)
call frisk simple scoring function using BMI
calc_card_10(df, age="age", gender="gender", bmi= "BMI",
sbp="sbp", is_sbp_under_treatment="isSbpTreated",
smoking_status="smoking", diabetes_status="diabetes"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.