DKAT: Dual Kernel-based Association Test

Description Usage Arguments Details Value References Examples

View source: R/DKAT.R

Description

Test the association between genotypes and phenotypes using two kernel matrices.

Usage

1
 DKAT(K, L) 

Arguments

K

A n by n kernel matrix calculated from genotypes

L

A n by n kernel matrix calculated from phenotypes

Details

The DKAT test statistic is the normalized frobenius inner product between two centered kernel matrices, and permutations are used to evaluate the significance based on this DKAT statistic. Instead of explicitly drawing permutations and calculating the permuted DKAT statistics, we approxiamte the permutation null distribution to a Pearson type III distribution. Details of this approximation can be found in Zhan et al., (2017).

Value

A p-value

References

Zhan, X. et al. (2017). Powerful genetic association analysis for common or rare varaints with high–dimensional structured tratis. Genetics, submitted.

Examples

1
2
3
4
5
6
X = matrix(rbinom(200,2,0.3), nrow=200,ncol=1) 	## 200*1 SNP vector
Y = matrix(rnorm(1000,0,1),nrow=200,ncol=5)	## 200*5 normal outcomes
W.beta=c(1,1) ## Beta-weights: flat for SNPs and beta(1,25) for RV
KX=wlin.kernel(X,W.beta)
KY=pheno.kernel(Y)
pv=DKAT(KX,KY)

xyz5074/DKAT documentation built on May 4, 2019, 2:28 p.m.