WSS: Weighted Sum of Squares

Description Usage Arguments Details Value Author(s) References Examples

Description

Computes the Weighted Sum of squares omnibus test for a list of individual MultiSKAT test

Usage

1
2
3
4
5
WSS(obj.res, obj.list, Z, weights.beta=c(1,25),
kernel = "linear.weighted",Is.Common=FALSE,
weights = NULL,r.corr = 0, impute.method = "fixed",
is_check_genotype=TRUE, is_dosage = FALSE, 
missing_cutoff=0.15, estimate_MAF=1,max_maf=1,verbose = TRUE)

Arguments

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)

Details

Weighted sum of squares is implemented with weights inversely proportional to the variance.

Value

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

Author(s)

Diptavo Dutta

References

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.

Examples

 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)

diptavo/MultiSKAT documentation built on May 22, 2019, 1:36 p.m.