Name the model
Returns the "name" (class attribute) of a model, possibly including further information.
model_name(x, ...) ## Default S3 method: model_name(x, include_formula = FALSE, include_call = FALSE, ...)
x |
A model. |
... |
Currently not used. |
include_formula |
Should the name include the model's formula. |
include_call |
If |
A character string of a name (which usually equals the model's class attribute).
m <- lm(Sepal.Length ~ Petal.Width, data = iris) model_name(m) model_name(m, include_formula = TRUE) model_name(m, include_call = TRUE) if (require("lme4")) { model_name(lmer(Sepal.Length ~ Sepal.Width + (1 | Species), data = iris)) }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.