find.xy: Find variable pairs for a given set of LA scouting vectors.

Description Usage Arguments Value Author(s) See Also Examples

Description

After finding the latent vectors, this function can be used to find the pairs of variables (rows of the original data matrix) that are associated with each latent vector in terms of dynamic correlation.

Usage

1
2
find.xy(array, z, fdr.cut=0.05, normalization="standardize",
 center.z=FALSE, lac.percentile=0.8)

Arguments

array

The data matrix with variables in the rows and samples in the columns.

z

The matrix of latent variables. Each column is a latent vector.

fdr.cut

The threshold of local fdr for the selection of variable pairs.

normalization

The way the data matrix is to be row-normalized. The method requires each row to have mean 0 and SD 1. There are two options, "standardize", or "normal score".

center.z

Whether to remove mean from each z vector.

lac.percentile

The variable pairs that are considered potentially dymanically correlated will enter the computation. This is determined by the percentile of the LAC score among all variable pairs. If the percentile is higher than the provided threshold, then they are considered.

Value

A list is returned. Each numbered item is a matrix with three columns: row number 1, row number 2, and local fdr value. Only those selected by fdr threhsold are returned.

Author(s)

Tianwei Yu <tianwei.yu@emory.edu>

See Also

dca()

Examples

1
2
3
4
5
6
x<-la.simu.gen(n=100,p=80,n.grp=2, n.noise.gene=100, rho=0.5, pwr=0.25)
z<-dca(x$dat, n.fac=2)
xy<-find.xy(x$dat, z[[2]], fdr.cut=0.01)
summary(xy)
xy[[1]][1:5,]
xy[[2]][1:5,]

DCA documentation built on May 2, 2019, 7:58 a.m.