ezcor_partial_cor_batch: Run parital correlation in a batch mode

Description Usage Arguments Value Author(s) See Also

View source: R/ezcor_partial_cor.R

Description

Run parital correlation in a batch mode

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
ezcor_partial_cor_batch(
  data = NULL,
  split = FALSE,
  split_var = NULL,
  var1 = NULL,
  var2 = NULL,
  var3 = NULL,
  cor_method = "pearson",
  sig_label = TRUE,
  ...
)

Arguments

data

a 'data.frame' containing variables

split

whether perform correlation grouped by a variable, default is 'FALSE'

split_var

a 'character', the group variable

var1

a 'character', the first variable in correlation

var2

a 'character' or 'vector', the second variable in correlation, and support batch mode

var3

a 'character' or 'character vector', the third variable in correlation

cor_method

method="pearson" is the default value. The alternatives to be passed to cor are "spearman" and "kendall"

sig_label

whether add symbal of significance. P < 0.001,"***"; P < 0.01,"**"; P < 0.05,"*"; P >=0.05,""

...

other arguments passed to methods

Value

a 'data.frame'

Author(s)

Yi Xiong

See Also

[ppcor::pcor.test()] which this function wraps.


Byronxy/ezcor documentation built on June 27, 2020, 7:55 a.m.