tidypredict_fit: Returns a Tidy Eval formula to calculate fitted values

View source: R/predict-fit.R

tidypredict_fitR Documentation

Returns a Tidy Eval formula to calculate fitted values

Description

It parses a model or uses an already parsed model to return a Tidy Eval formula that can then be used inside a dplyr command.

Usage

tidypredict_fit(model)

Arguments

model

An R model or a list with a parsed model.

Value

A Tidy Eval formula that calculates the fitted values. Models that produce one formula per class or per outcome return a list of formulas.

Examples


model <- lm(mpg ~ wt + cyl * disp, offset = am, data = mtcars)
tidypredict_fit(model)

tidypredict documentation built on Oct. 18, 2026, 5:06 p.m.