Print a model as an equation
coef_equation.Rd
Print a model as an equation
Examples
mod <- lm(Sepal.Length ~ Sepal.Width + Petal.Length, data = iris)
coef_equation(mod)
#> [1] "2.2 + Sepal.Width * 0.60 + Petal.Length * 0.47"
# "2.2 + Sepal.Width \* 0.60 + Petal.Length \* 0.47"