Description Usage Arguments Value Author(s) See Also Examples
Run Biweight Midcorrelation
1 | ezcor_bicor(data, var1, var2, split = FALSE, split_var, ...)
|
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 |
a 'data.frame'
Yi Xiong
WGCNA::bicor() which this function wraps.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.