tidypredict_sql_interval: Returns a SQL query with formula to calculate predicted...

View source: R/to_sql.R

tidypredict_sql_intervalR Documentation

Returns a SQL query with formula to calculate predicted interval

Description

Returns a SQL query with formula to calculate predicted interval

Usage

tidypredict_sql_interval(model, con, interval = 0.95)

Arguments

model

An R model or a tibble with a parsed model

con

Database connection object. It is used to select the correct SQL translation syntax.

interval

The prediction interval, defaults to 0.95

Examples

library(dbplyr)

model <- lm(mpg ~ wt + am + cyl, data = mtcars)
tidypredict_sql_interval(model, simulate_dbi())

tidypredict documentation built on May 28, 2022, 1:06 a.m.