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")
})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.