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_interval(model, interval = 0.95)
An R model or a list with a parsed model
The prediction interval, defaults to 0.95
The result still has to be added to and subtracted from the fit to obtain the upper and lower bound respectively.
model <- lm(mpg ~ wt + cyl * disp, offset = am, data = mtcars) tidypredict_interval(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.