Run partial correlation
ezcor_partial_cor(
data = NULL,
split = FALSE,
split_var = NULL,
var1 = NULL,
var2 = NULL,
var3 = NULL,
cor_method = "pearson",
sig_label = TRUE,
...
)
a data.frame
a data.frame
containing variables
whether perform correlation grouped by a variable, default is 'FALSE'
a character
, the group variable
a character
, the first variable in correlation
a character
, the second variable in correlation
a character
or character vector
, the third variable in correlation
method="pearson" is the default value. The alternatives to be passed to cor are "spearman" and "kendall"
whether add symbal of significance. P < 0.001,""; P < 0.01,""; P < 0.05,""; P >=0.05,""
other arguments passed to methods
Yi Xiong
ppcor::pcor.test()
which this function wraps.