Andrey Kuznetsov
25 Jan 2015
Welcome to the Framingham Risk Score Calculator. You can use this calculator to work out your risk of having a heart disease or stroke over the next ten years by answering some simple question.
The Framingham Risk Score allows to calculate both rik points and risk score in % of developing a heart disease in individual over 10 years.
The application was developed using shiny and deployed at https://ankuznetsov.shinyapps.io/Framingham_risk_score/
To calculate risk points the application uses data about user's age, gender, smoking status, sistolic blood pressure, total and HDL cholesterol.
A user can select appropriate values using standard controls in the left panel of the application:
points.men <- function(age, totchol, smoker, HDLChol, treated, SBP)
age <- reactive({as.numeric(input$AgeSelect)})
output$PointsOutput <- renderPrint({
if(input$RiskButton > 0)
{
if(sex() == 'Male')
{
points.men(age(), totchol(), smoker(), HDLChol(), treated(), SBP())
}
else if(sex() == 'Female')
{
points.women(age(), totchol(), smoker(), HDLChol(), treated(), SBP())
}
}
})