tests/testthat/test-beta_2.R

library(testthat)
library(CNAIM)

context("Beta 2")

test_that("basic case", {
  res <- beta_2(current_health_score = 1, age = 25)
  expected_val <- 0.02772589

  expect_equal(res, expected_val)
})

Try the CNAIM package in your browser

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

CNAIM documentation built on Aug. 31, 2022, 9:13 a.m.