|
a |
|
b/man/RMT_threshold.Rd |
|
|
1 |
% Generated by roxygen2: do not edit by hand |
|
|
2 |
% Please edit documentation in R/2-3.RMT.R |
|
|
3 |
\name{RMT_threshold} |
|
|
4 |
\alias{RMT_threshold} |
|
|
5 |
\alias{rmt} |
|
|
6 |
\title{Get RMT threshold for a correlation matrix} |
|
|
7 |
\usage{ |
|
|
8 |
RMT_threshold( |
|
|
9 |
occor.r, |
|
|
10 |
out_dir, |
|
|
11 |
min_threshold = 0.5, |
|
|
12 |
max_threshold = 0.8, |
|
|
13 |
step = 0.02, |
|
|
14 |
gif = FALSE, |
|
|
15 |
verbose = FALSE |
|
|
16 |
) |
|
|
17 |
|
|
|
18 |
rmt(occor.r, min_threshold = 0.5, max_threshold = 0.85, step = 0.01) |
|
|
19 |
} |
|
|
20 |
\arguments{ |
|
|
21 |
\item{occor.r}{a corr object or a correlation matrix} |
|
|
22 |
|
|
|
23 |
\item{out_dir}{output dir} |
|
|
24 |
|
|
|
25 |
\item{min_threshold}{min_threshold} |
|
|
26 |
|
|
|
27 |
\item{max_threshold}{max_threshold} |
|
|
28 |
|
|
|
29 |
\item{step}{step} |
|
|
30 |
|
|
|
31 |
\item{gif}{render a .gif file?} |
|
|
32 |
|
|
|
33 |
\item{verbose}{verbose} |
|
|
34 |
} |
|
|
35 |
\value{ |
|
|
36 |
a r-threshold |
|
|
37 |
|
|
|
38 |
recommend threshold |
|
|
39 |
} |
|
|
40 |
\description{ |
|
|
41 |
Get RMT threshold for a correlation matrix |
|
|
42 |
|
|
|
43 |
Get RMT threshold for a correlation matrix roughly |
|
|
44 |
} |
|
|
45 |
\examples{ |
|
|
46 |
\donttest{ |
|
|
47 |
data(otutab, package = "pcutils") |
|
|
48 |
t(otutab) -> totu |
|
|
49 |
c_net_calculate(totu) -> corr |
|
|
50 |
rmt(corr) |
|
|
51 |
# recommend: 0.69 |
|
|
52 |
c_net_build(corr, r_threshold = 0.69) -> co_net_rmt |
|
|
53 |
} |
|
|
54 |
} |
|
|
55 |
\references{ |
|
|
56 |
J. Zhou, Y. Deng, FALSE. Luo, Z. He, Q. Tu, X. Zhi, (2010) Functional Molecular Ecological Networks, doi:10.1128/mBio.00169-10. |
|
|
57 |
\url{https://matstat.org/content_en/RMT/RMThreshold_Intro.pdf} |
|
|
58 |
} |