Learn R Programming

sqlm (version 0.1.0)

tidy.lm_sql_result: Tidy an lm_sql_result

Description

Extract a tidy tibble of per-term coefficient statistics from a fitted SQL linear model.

Usage

# S3 method for lm_sql_result
tidy(x, conf.int = FALSE, conf.level = 0.95, ...)

Value

A tibble with columns `term`, `estimate`, `std.error`, `statistic`, and `p.value`. If `conf.int = TRUE`, also `conf.low` and `conf.high`.

Arguments

x

An `lm_sql_result` object.

conf.int

Logical. If `TRUE`, include confidence interval columns `conf.low` and `conf.high`. Defaults to `FALSE`.

conf.level

Confidence level for the interval. Defaults to `0.95`.

...

Not used.

Details

Returns one row per model term with the estimate, standard error, t-statistic, and p-value. When `conf.int = TRUE`, confidence intervals are computed using the t-distribution with `df_residual` degrees of freedom.