tests/testthat/test-HLfit.R

cat(crayon::yellow("\ntest HLfit:\n"))
# HLfit

data("wafers")
## Gamma GLMM with log link
## also test that control.glm is syntactically correct
hl <- HLfit(y ~X1+X2+X1*X3+X2*X3+I(X2^2)+(1|batch),family=Gamma(log),
            resid.model = ~ X3+I(X3^2) ,data=wafers,control.glm=list(maxit=100))
testthat::expect_equal(hl$APHLs$p_v,-1157.609,tolerance=1e-03)
AIC(hl)
simulate(hl,nsim=2)

Try the spaMM package in your browser

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

spaMM documentation built on Aug. 30, 2023, 1:07 a.m.