tests/testthat/test-ascvd_10y_frs.R

test_that("FRS: 55yo male example is correct", {
  expect_equal(
    ascvd_10y_frs(
      gender = "male",
      age = 55,
      sbp = 140,
      hdl = 50,
      totchol = 213,
      bp_med = 0,
      smoker = 0,
      diabetes = 0
    ),
    13.53
  )
})

Try the CVrisk package in your browser

Any scripts or data that you put into this service are public.

CVrisk documentation built on Aug. 20, 2023, 1:06 a.m.