tests/testthat/test_pct_bmi_for_age.R

test_that("Pct bmi for age", {
  expect_equal(pct_bmi_for_age(age = 2, bmi = 16, sex = "male")$percentile, 57.7)
  expect_equal(pct_bmi_for_age(age = 6, bmi = 16, sex = "female")$percentile, 66.1)
})

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.