tests/testthat/test-salamander.R

cat(crayon::yellow("\ntest salamander:"))
# salamander

data("salamander")
salam <- HLfit(cbind(Mate,1-Mate)~TypeF+TypeM+TypeF*TypeM+(1|Female)+(1|Male),
      family=binomial(),data=salamander,HLmethod="ML",control.HLfit = list(LevenbergM=FALSE))

testthat::expect_equal(salam$APHLs$p_v,-209.2766,tolerance=1e-4)

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.