remove_fixef( y ~ a*b, ~ a*b) # y ~ 1, different from:
# remove_fixef(y ~ a*b, "a*b") # Warning and nothing removed
# (because a*b not in terms(formula), which instead contains a, b and a:b)
remove_fixef( y ~ a*b, ~ a*b) # => y ~ 1, same result as:
remove_fixef( y ~ a*b, ~ b*a)
remove_fixef( y ~ a*b, "a:b") # Same result as:
remove_fixef( y ~ a*b, "b:a") # a:b removed
# Remove all fixed effects term by setting 'remove' equal to 'formula':
form <- ~ offset() + a*b + (1|grp)
remove_fixef(form, form)
remove_fixef(form, form, keep_intercept = FALSE, keep_offset = FALSE)
Run the code above in your browser using DataLab