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 )
})

Try the EstimationTools package in your browser

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

EstimationTools documentation built on Dec. 10, 2022, 9:07 a.m.