tests/testthat/test-chd_10y_mesa_cac.R

test_that("MESA (with CAC): 70yo male example is correct", {
  expect_equal(
    chd_10y_mesa_cac(
      gender = "male",
      age = 70,
      race = "hispanic",
      sbp = 130,
      hdl = 50,
      totchol = 190,
      bp_med = 1,
      lipid_med = 0,
      smoker = 0,
      diabetes = 0,
      fh_heartattack = 0,
      cac = 0
    ),
    3.06
  )
})

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.