tests/testthat/test-coefMany_oneparam.R

test_that("running 'coefMany' 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 <- coefMany(theta_1, parameter = 'sd')
  expect_length( a, 1 )
})
Jaimemosg/EstimationTools documentation built on Oct. 23, 2023, 10 a.m.