tests/testthat/test-buildmertree.R

library(buildmer)
library(testthat)
test_that('buildmertree',{
	skip_on_cran()
	model <- buildmertree(Reaction ~ 1 | (Days|Subject) | Days,
		buildmerControl=buildmerControl(crit='LL',direction='order',args=list(joint=FALSE)),
	        data=lme4::sleepstudy,family=Gamma(link=identity))
	buildmer:::testthat.compare.df(model@p$tab,'buildmertree')
})

Try the buildmer package in your browser

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

buildmer documentation built on Oct. 25, 2023, 9:08 a.m.