tests/testthat/test-bias.R

test_that("bias works for guassian", {
  testthat::expect_snapshot_value(
    bias(residuals(fit_glm), treatment = dummy_data$treatment, group_idx = list(seq_len(nrow(dummy_data)))),
    style = "deparse", tolerance = 1e-4
  )
})

Try the RobinCar2 package in your browser

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

RobinCar2 documentation built on April 3, 2025, 9:34 p.m.