R Under development (unstable) (2024-04-23 r86473 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(epigrowthfit) > options(warn = 2L, error = if (interactive()) recover) > > > ## excess ############################################################## > > r <- log(2) / 20 > tinfl <- 100 > K <- 25000 > b <- 10 > disp <- 50 > > zz <- simulate(egf_model(curve = "logistic", family = "nbinom", + excess = TRUE), + nsim = 1L, + seed = 366465L, + mu = log(c(r, tinfl, K, b, disp)), + cstart = 10) > mm <- egf(zz, formula_priors = list(log(b) ~ Normal(mu = 2.5, sigma = 1))) > > stopifnot(all.equal(coef(zz), coef(mm), tolerance = 5e-02)) > > proc.time() user system elapsed 1.56 0.20 1.75