model_equation: model_equation

View source: R/models_utils.R

model_equationR Documentation

model_equation

Description

print model equation with generic or actual values thanks to https://stats.stackexchange.com/a/433060 for the equation part. I've added the printing and prediction

Usage

model_equation(model, newdata = NULL, ..., only_print = FALSE)

Arguments

model

a fitted glm/lm object

newdata

a list or dataframe with values where evaluate the prediction

...

additional arguments to predict()

only_print

logical. TRUE if returning the equation as string


filippogambarota/filor documentation built on July 3, 2025, 8:39 p.m.