MatCorPack: Compute correlation in mutiple methods

Description Usage Arguments Value Author(s)

View source: R/MatCor.R

Description

Compute correlation tests between two matrices using multiple methods and return a nested list. The length of the first level list equals to the numebr of methods input. Each member of the first level list is a output of the MatCor function. The methods supported are pearson, spearman, kendall, and lm.

Usage

1
2
MatCorPack(X, Y, methods = c("pearson", "spearman", "kendall", "lm"),
  adjust.method = "BH", design)

Arguments

X

numaric matrix of data values.

Y

numeric matrix of data values. Must have same number of columns as X.

adjust.method

character value indicating the method to use for p value adjustement. See p.adjust.

design

a design matrix must if "lm" is in the methods. The design matrix can be built using the model.matrix function.

method

character value indicating the method to use. Must be one of "pearson", "spearman", "kendall", or "lm".

Value

A nested list, with the methods being the first level, X variables being the second, and Y variables the bottom level.

Author(s)

Chenghao Zhu


zhuchcn/MatCorR documentation built on Nov. 5, 2019, 1:27 p.m.