tests/testthat/test_pk_1cmt_inf_ss.R

test_that("PK 1cmt iv steady state", {
  expect_equal(
    round(
      tail(
        pk_1cmt_inf_ss(dose = 100, tau = 12, t_inf = 2, CL = 5, V = 50),
        1
      )$dv,
      3
    ),
    0.954
  )
})

Try the clinPK package in your browser

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

clinPK documentation built on May 9, 2022, 9:06 a.m.