effect_metrics_items {volker} | R Documentation |
The correlation is calculated using stats::cor.test
.
effect_metrics_items(
data,
cols,
negative = FALSE,
method = "pearson",
labels = TRUE,
clean = TRUE,
...
)
data |
A tibble containing item measures. |
cols |
The column holding metric values. |
negative |
If FALSE (default), negative values are recoded as missing values. |
method |
The output metrics, TRUE or pearson = Pearson's R, spearman = Spearman's rho. |
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 table containing correlations.
library(volker)
data <- volker::chatgpt
effect_metrics_items(data, starts_with("cg_adoption"))