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

Description Usage Arguments Examples

View source: R/to_sql.R

Description

Returns a SQL query with formula to calculate predicted interval

Usage

1
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

1
2
3
4
library(dbplyr)

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

edgararuiz/tidypredict documentation built on Oct. 2, 2021, 8:04 a.m.