compute_cor: Compute the correlation

Description Usage Arguments Value

Description

This function computes either the pearson or spearman correlation coefficient. This function is used in non_partial_corr.R

Usage

1
compute_cor(data_group_2, data_group_1, type_of_cor)

Arguments

data_group_2

This is a n*p matrix

data_group_1

This is a n*p matrix

type_of_cor

If this is NULL, pearson correlation coefficient will be calculated. Otherwise, a character string "spearman" will calculate the spearman correlation coefficient.

Value

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


kg737/INDEED_Patch documentation built on May 22, 2019, 6:32 p.m.