View source: R/phimr.R View source: R/internal.R
phimr | R Documentation |
Selects columns of x
related to one or more columns of y
using a filter method in which permuted data is compared to original data using nonparametric tests of association between columns from x
and columns from y
.
phimr(y, x)
y |
a numeric matrix containing data on the dependent variables, with at least two observations indexed by row. |
x |
a numeric matrix with the same number of rows as |
A two-sided test of the hypothesis that Spearman's Rho equals 0 is performed for each pair of columns, one from x
and one from y
. A row-permuted copy of x
is created, and the tests are repeated using the permuted copy of x
. A column of x
passes the filter (i.e., is deemed to be related to y
) if the minimum of the P-values for that column from the original data is less than the minimum of the P-values from the permuted data.
If no columns of x
pass the filter, then the column with the lowest
minimum P-value is selected by default.
An integer vector of variable length, containing the indices of the columns of x
which passed the filter.
Brian Neal
Neal, Brian and He, Tao. “An adaptive multivariate kernel-based test for association with multiple quantitative traits in high-dimensional data.” Genetic Epidemiology (not yet submitted).
y <- matrix(rnorm(4 * 25), nrow = 25, ncol = 4) x <- matrix(rnorm(50 * 25), nrow = 25, ncol = 50) selected_x_columns <- phimr(y, x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.