Description Usage Arguments Value References Examples
Compute the significance p-value for SKAT-O based on marginal t-statistics. The computational algorithm is described in detail at Wu et. al (2015).
1 2 |
obj |
a fitted null linear model using KAT.cnull() |
G |
genotype matrix, sample in rows, variant in columns |
W.beta |
Beta parameters for variant weights |
rho |
weights for burden test |
SKATOT p-value
Lee, S., Wu, M. C., and Lin, X. (2012) Optimal tests for rare variant effects in sequencing association studies. Biostatistics, 13, 762-775.
Wu,B., Pankow,J.S., Guan,W. (2015) Sequence kernel association analysis of rare variant set based on the marginal regression model for binary traits. Genetic Epidemiology, 39(6), 399-405.
Wu,B., Guan,W., Pankow,J.S. (2016) On efficient and accurate calculation of significance p-values for sequence kernel association test of variant set. Annals of human genetics, in press.
1 2 3 4 5 6 7 8 9 | library(CompQuadForm)
Y = rnorm(5000); X = matrix(rnorm(10000),5000,2)
G = matrix(rbinom(100000,2,0.01), 5000,10)
Y = Y + G[,1]*0.4 + G[,10]*0.3 + G[,2]*0.2
SKATT(KAT.cnull(Y,X), G, c(1.5,25.5))
SKATOT(KAT.cnull(Y,X), G, c(1.5,25.5))
## library(SKAT)
## SKAT(G, SKAT_Null_Model(Y~X, out_type='C'), method='davies')$p.value
## SKAT(G, SKAT_Null_Model(Y~X, out_type='C'), method='optimal.adj')$p.value
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.