tests/testthat/test-coef_maxlogL.R

test_that("running 'coef' maxlogLreg", {

  x <- rnorm(n = 10000, mean = 160, sd = 6)
  theta_1 <- maxlogL(x = x, dist = 'dnorm',
                   link = list(over = "sd", fun = "log_link"),
                   fixed = list(mean = 160))
  a <- coef(theta_1)
  expect_length( a, 1 )
})

Try the EstimationTools package in your browser

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

EstimationTools documentation built on Sept. 9, 2025, 5:32 p.m.