[3bfed4]: / man / permutation_cor.Rd

Download this file

43 lines (36 with data), 1.3 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helper_function.R
\name{permutation_cor}
\alias{permutation_cor}
\title{Permutations to build a differential network based on correlation analysis}
\usage{
permutation_cor(
m,
p,
n_group_1,
n_group_2,
data_group_1,
data_group_2,
type_of_cor
)
}
\arguments{
\item{m}{This is the number of permutations.}
\item{p}{This is the number of biomarker candidates.}
\item{n_group_1}{This is the number of subjects in group 1.}
\item{n_group_2}{This is the number of subjects in group 2.}
\item{data_group_1}{This is a \eqn{n*p} matrix containing group 1 data.}
\item{data_group_2}{THis is a \eqn{n*p} matrix containing group 2 data.}
\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 multi-dimensional matrix that contains the permutation result.
}
\description{
A permutation test that randomly permutes the sample labels in distinct
biological groups for each biomolecule. The difference in each paired biomolecule
is considered statistically significant if it falls into the 2.5% tails on either end of the
empirical distribution curve.
}