tests/testthat/test-lOR_estimation.R

test_that("lor_estimation outputs the right element", {
  result <- lor_estimation(
    design_matrix1, design_dummy1,
    est_coef_bin1
  )
  expected <- -0.4630356
  expect_equal(result, expected, tolerance = 0.00001)
})

Try the bonsaiforest package in your browser

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

bonsaiforest documentation built on Sept. 30, 2024, 9:46 a.m.