ezcor_bicor: Run Biweight Midcorrelation

Description Usage Arguments Value Author(s) See Also Examples

View source: R/ezcor_bicor.R

Description

Run Biweight Midcorrelation

Usage

1
ezcor_bicor(data, var1, var2, split = FALSE, split_var, ...)

Arguments

data

a 'data.frame' containing variables

var1

a 'character', the first variable in correlation

var2

a 'character', the second variable in correlation

split

‘logic value',whether perform correlation grouped by a variable, default is ’FALSE'

split_var

a 'character', the group variable

...

other arguments passed to methods

Value

a 'data.frame'

Author(s)

Yi Xiong

See Also

WGCNA::bicor() which this function wraps.

Examples

1
2
3
4
5
6
data("exprSet", package = "ezcor", envir = environment())
g1 <- colnames(exprSet)[3]
g2 <- colnames(exprSet)[4]
genelist <- colnames(exprSet)
genelist <-  setdiff(genelist,c("patient","tissue",g1))
res <- ezcor::ezcor_bicor(data = exprSet,g1,g2)

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