effect_metrics_one_grouped {volker} | R Documentation |
The regression output comes from stats::lm
.
effect_metrics_one_grouped(
data,
col,
cross,
negative = FALSE,
method = "lm",
labels = TRUE,
clean = TRUE,
...
)
data |
A tibble. |
col |
The column holding metric values. |
cross |
The column holding groups to compare. |
negative |
If FALSE (default), negative values are recoded as missing values. |
method |
A character vector of methods, e.g. c("t.test","lm"). Supported methods are t.test (only valid if the cross column contains two levels) and lm (regression results). |
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. |
A volker list object containing volker tables with the requested statistics.
library(volker)
data <- volker::chatgpt
effect_metrics_one_grouped(data, sd_age, sd_gender)