Returns a SQL query with formula to calculate predicted interval
tidypredict_sql_interval(model, con, interval = 0.95)
An R model or a tibble with a parsed model
Database connection object. It is used to select the correct SQL translation syntax.
The prediction interval, defaults to 0.95
library(dbplyr) model <- lm(mpg ~ wt + am + cyl, data = mtcars) tidypredict_sql_interval(model, simulate_dbi())
Run the code above in your browser using DataLab