[3bfed4]: / man / compute_cor.Rd

Download this file

24 lines (21 with data), 693 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helper_function.R
\name{compute_cor}
\alias{compute_cor}
\title{Compute the correlation}
\usage{
compute_cor(data_group_1, data_group_2, type_of_cor)
}
\arguments{
\item{data_group_1}{This is a n*p matrix.}
\item{data_group_2}{This is a n*p matrix.}
\item{type_of_cor}{If this is NULL, pearson correlation coefficient will be calculated as
default. Otherwise, a character string "spearman" will calculate the spearman correlation
coefficient.}
}
\value{
A list of correlation matrices for both group 1 and group 2.
}
\description{
This function computes either the pearson or spearman correlation coefficient.
}