tests/testthat/test-confint.gnm.R

tol <- 1e-4

test_that("confint works within function call", {
    # https://github.com/hturner/gnm/issues/11
    f <- function(d) {
        fit <- gnm(Freq ~ vote, family = poisson, data = d)
        confint(fit)
    }
    expect_snapshot_value(f(as.data.frame(cautres)), style = "json2")
})

Try the gnm package in your browser

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

gnm documentation built on Sept. 16, 2023, 5:06 p.m.