Use buildmer to perform stepwise elimination for lmertree and glmertree models from package glmertree
buildmer
lmertree
glmertree
Useful links