tests/testthat/test-dynamization_fun.R

test_that("dynamization_fun works", {
  expect_equal(
    dynamization_fun(c(1, 100, 200, 300, 366)),
    c(1.24203012, 1.0288, 0.7848, 1.0168, 1.25968523)
  )
})

Try the standardlastprofile package in your browser

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

standardlastprofile documentation built on May 29, 2024, 2:54 a.m.