Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/venkmurthy/vmtools
Browse files Browse the repository at this point in the history
  • Loading branch information
venkmurthy committed Dec 7, 2023
2 parents 6efb4d9 + d9064ee commit b59ddca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/calcPREVENT.ASCVD.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ calcPREVENT.ASCVD <- function(age, sex, tc, hdl, sbp, bptx, smoking, dm, statin,
lipidtx[sapply(statin,tolower) %in% sapply(statin.true,tolower)] <- 1
lipidtx[sapply(statin,tolower) %in% sapply(statin.false,tolower)] <- 0

# Formulas need cholesterol metrics to be in mmol/L
tc <- tc * 0.02586
hdl <- hdl * 0.02586

# Women
women <- sapply(sex,tolower) %in% sapply(female,tolower)

Expand Down

0 comments on commit b59ddca

Please sign in to comment.