powered by
The correlation is calculated using stats::cor.test.
stats::cor.test
effect_metrics_items_cor_items( data, cols, cross, method = "pearson", labels = TRUE, clean = TRUE, ... )
A volker table containing correlations.
A tibble containing item measures.
Tidyselect item variables (e.g. starts_with...).
The output metrics, pearson = Pearson's R, spearman = Spearman's rho.
If TRUE (default) extracts labels from the attributes, see codebook.
Prepare data by data_clean.
Placeholder to allow calling the method with unused parameters from effect_metrics.
library(volker) data <- volker::chatgpt effect_metrics_items_cor_items( data, starts_with("cg_adoption_adv"), starts_with("use"), metric = TRUE )
Run the code above in your browser using DataLab