Description Usage Arguments Details Value Author(s) References Examples
Computes the Weighted Sum of squares omnibus test for a list of individual MultiSKAT test
1 2 3 4 5 |
obj.res |
a NULL object from MultiSKAT_NULL or MultiSKAT_NULL_Kins |
obj.list |
A list containing output from MultiSKAT or MultiSKAT_Fast function |
Z |
A kernelized genotype matrix |
kernel |
a type of kernel (default= "linear.weighted"). See detail section. |
Is.Common |
a binary variable indiciating whether a variant has the same effect on all the phenotypes (default=FALSE). |
weights.beta |
a numeric vector of parameters for the beta weights for the weighted kernels. If you want to use your own weights, please use the "weights" parameter. It will be ignored if "weights" parameter is not null. |
r.corr |
the ρ parameter for the compound symmetric correlation structure kernels (default=0). |
weights |
a numeric vector of weights for the weighted kernels. |
impute.method |
a method to impute missing genotypes (default= "fixed"). "bestguess" imputes missing genotypes as most likely values (0,1,2), "random" imputes missing genotypes by generating binomial(2,p) random variables (p is the MAF), and "fixed" imputes missing genotypes by assigning the mean genotype values (2p). |
is_check_genotype |
a logical value indicating whether to check the validity of the genotype matrix Z (default= TRUE). If Z has non-SNP data, please set it FALSE, otherwise you will get an error message. If it is FALSE and you use weighted kernels, the weights should be given through the "weights" parameter. |
is_dosage |
a logical value indicating whether the matrix Z is a dosage matrix. If it is TRUE, the function will ignore "is_check_genotype". |
missing_cutoff |
a cutoff of the missing rates of SNPs (default=0.15). Any SNPs with missing rates higher than the cutoff will be excluded from the analysis. |
estimate_MAF |
a numeric value indicating how to estimate MAFs for the weight calculation and the missing genotype imputation. If estimate_MAF=1 (default), it uses all samples to estimate MAFs. If estimate_MAF=2, only samples with non-missing phenotypes and covariates are used to estimate MAFs |
max_maf |
a cutoff of the maximum minor allele frequencies (MAF) (default=1, no cutoff). Any SNPs with MAF > cutoff will be excluded from the analysis |
verbose |
a binary indicator to display messages (default=TRUE, displays messages) |
Weighted sum of squares is implemented with weights inversely proportional to the variance.
The function returns a list containing
Q |
Value of the test statistic |
p.value |
P-value for the weighted sum of squares test |
Lambda |
Mixing parameter for the null distribution of the WSS test statistic |
Diptavo Dutta
Ionita-Laza, I.*, Lee, S.*, Makarov, V., Buxbaum, J. Lin, X. (2013). Sequence kernel association tests for the combined effect of rare and common variants. American Journal of Human Genetics, 92, 841-853. * contributed equally.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | data(MultiSKAT.example.data)
attach(MultiSKAT.example.data)
obj.null <- MultiSKAT_NULL(Phenotypes,Cov)
out1 <- MultiSKAT(obj.null,Genotypes,cov(Phenotypes))
out2 <- MultiSKAT(obj.null,Genotypes,diag(5))
out3 <- MultiSKAT(obj.null,Genotypes,matrix(1,ncol = 5,nrow = 5))
### Combining PhC, Het and Hom
obj.list = list(out1,out2,out3)
obj.wss = WSS(obj.null,obj.list,Genotypes)
str(obj.wss)
### Combining PhC and Het
obj.list = list(out2,out1)
obj.wss = WSS(obj.null,obj.list,Genotypes)
str(obj.wss)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.