model_metrics_tab: Output a regression table with estimates and macro statistics...

View source: R/model.R

model_metrics_tabR Documentation

Output a regression table with estimates and macro statistics for multiple categorical or metric independent variables

Description

The regression output comes from stats::lm.

[Experimental]

Usage

model_metrics_tab(
  data,
  col,
  categorical,
  metric,
  labels = TRUE,
  clean = TRUE,
  ...
)

Arguments

data

A tibble.

col

The target column holding metric values.

categorical

A tidy column selection holding categorical variables.

metric

A tidy column selection holding metric variables.

labels

If TRUE (default) extracts labels from the attributes, see codebook.

clean

Prepare data by data_clean.

...

Placeholder to allow calling the method with unused parameters from effect_metrics.

Value

A volker list object containing volker tables with the requested statistics.

Examples

library(volker)
data <- volker::chatgpt

data |>
  filter(sd_gender != "diverse") |>
  model_metrics_tab(use_work, categorical = c(sd_gender, adopter), metric = sd_age)


volker documentation built on April 12, 2025, 9:16 a.m.