Is a model term an offset?
Given a character vector of model terms, checks to see which, if any, is the model offset.
is_offset(terms)
terms |
character vector of model terms. |
A logical vector of the same length as terms
.
Gavin L. Simpson
load_mgcv() df <- gamSim(1, n = 400, dist = "normal") m <- gam(y ~ s(x0) + s(x1) + offset(x0), data = df, method = "REML") nm <- names(model.frame(m)) nm is_offset(nm)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.