fhrisk_10y: Framingham Risk Calculator (10 Year Cardiovascular risk)

View source: R/fhrisk_10y.R

fhrisk_10yR Documentation

Framingham Risk Calculator (10 Year Cardiovascular risk)

Description

This functions calculates the 10-year cardiovascular risk based on the Framingham Risk Score. I used data from Wikipedia.

Usage

fhrisk_10y(
  gender,
  age,
  cholesterol,
  smoke,
  hdl,
  sysbp,
  bp_treated,
  mg_dl = TRUE
)

Arguments

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

Value

character oject indicating 10

Examples

fhrisk_10y(gender = "male", age = 60, cholesterol = 7,
           hdl = 1.2, sysbp = 120, bp_treated = TRUE,
           mg_dl = FALSE)


bsurial/bernr documentation built on Nov. 7, 2022, 1:41 a.m.