revdep/checks.noindex/insight/old/insight.Rcheck/tests/testthat/test-nlmer.R

if (require("testthat") &&
  require("insight") &&
  require("lme4")) {
  set.seed(123)
  startvec <- c(Asym = 200, xmid = 725, scal = 350)
  nm1 <-
    lme4::nlmer(
      formula = circumference ~ SSlogis(age, Asym, xmid, scal) ~ Asym | Tree,
      data = Orange,
      start = startvec
    )

  test_that("find_statistic", {
    expect_identical(find_statistic(nm1), "t-statistic")
  })
}
gbm-developers/gbm documentation built on Feb. 16, 2024, 6:13 p.m.