compute_cor: Compute the correlation

Description Usage Arguments Value

View source: R/helper_function.R

Description

Compute either pearson or spearman correlation coefficient.

Usage

1
compute_cor(data_group_2, data_group_1, type_of_cor)

Arguments

data_group_2

a n*p matrix.

data_group_1

a n*p matrix

type_of_cor

if NULL, pearson correlation coefficient will be calculated. Otherwise, a character string "spearman" to calculate spearman correlation coefficient.

Value

A list of correlation matrix for both group 1 and group 2


cx30/INDEED documentation built on May 5, 2019, 2:41 a.m.