Run correlation between two variables in a batch mode and support group by a variable
ezcor_batch(
data,
var1,
var2,
split = FALSE,
split_var = NULL,
cor_method = "pearson",
adjust_method = "none",
use = "complete",
sig_label = TRUE,
parallel = FALSE,
verbose = FALSE
)
a data.frame
a data.frame
containing variables
a character, the first variable in correlation
a character, the second variable in correlation
whether perform correlation grouped by a variable, default is 'FALSE'
a character
, the group variable
method="pearson" is the default value. The alternatives to be passed to cor are "spearman" and "kendall"
What adjustment for multiple tests should be used? ("holm", "hochberg", "hommel", "bonferroni", "BH", "BY", "fdr", "none")
use="pairwise" will do pairwise deletion of cases. use="complete" will select just complete cases
whether add symbal of significance. P < 0.001,***
; P < 0.01,**
; P < 0.05,*
; P >=0.05,""
if TRUE
, do parallel computation by furrr package.
if TRUE
, print extra info.
Yi Xiong, Shixiang Wang