Find smooth terms from a model object
Return the names of smooth terms from a model object.
find_smooth(x, flatten = FALSE)
x |
A (gam) model. |
flatten |
Logical, if |
A character vector with the name(s) of the smooth terms.
if (require("mgcv")) { data(iris) model <- gam(Petal.Length ~ Petal.Width + s(Sepal.Length), data = iris) find_smooth(model) }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.