Description Usage Arguments Value Details Author(s) References Examples
View source: R/MGCPermutationTest.R
Test of Dependence using MGC Approach.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | mgc.test(
X,
Y,
is.dist.X = FALSE,
dist.xfm.X = mgc.distance,
dist.params.X = list(method = "euclidean"),
dist.return.X = NULL,
is.dist.Y = FALSE,
dist.xfm.Y = mgc.distance,
dist.params.Y = list(method = "euclidean"),
dist.return.Y = NULL,
nperm = 1000,
option = "mgc",
no_cores = 1
)
|
X |
is interpreted as:
|
Y |
is interpreted as:
|
is.dist.X |
a boolean indicating whether your |
dist.xfm.X |
if |
dist.params.X |
a list of trailing arguments to pass to the distance function specified in |
dist.return.X |
the return argument for the specified
|
is.dist.Y |
a boolean indicating whether your |
dist.xfm.Y |
if |
dist.params.Y |
a list of trailing arguments to pass to the distance function specified in |
dist.return.Y |
the return argument for the specified
|
nperm |
specifies the number of replicates to use for the permutation test. Defaults to |
option |
is a string that specifies which global correlation to build up-on. Defaults to
|
no_cores |
the number of cores to use for the permutations. Defaults to |
A list containing the following:
|
P-value of MGC |
|
is the sample MGC statistic within |
|
P-value of the local correlations by double matrix index. |
|
the local correlations |
|
the optimal scale identified by MGC |
|
specifies which global correlation was used |
A test of independence using the MGC approach, described in Vogelstein et al. (2019). For X ~ Fx, Y ~ Fy:
H0: Fx != Fy
and:
Ha: Fx = Fy
Note that one should avoid report positive discovery via minimizing individual p-values of local correlations, unless corrected for multiple hypotheses.
For details on usage see the help vignette:
vignette("mgc", package = "mgc")
Eric Bridgeford and C. Shen
Joshua T. Vogelstein, et al. "Discovering and deciphering relationships across disparate data modalities." eLife (2019).
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.