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.

tidypredict_fit(model)

Arguments

model

An R model or a list with a parsed model.

Examples

model <- lm(mpg ~ wt + cyl * disp, offset = am, data = mtcars) tidypredict_fit(model)
#> 46.9691423291323 + (wt * -2.43434983315996) + (cyl * -2.86061920499755) + #> (disp * -0.0765223074908514) + (cyl * disp * 0.00981028601947223) + #> am