Description Usage Arguments Details Value Author(s) References Examples
Compute the nonparametric association test scores between a set of rare variants and continous or dichotomous outcomes with and(or) without gene-gene interactions
1 | SPA.I(x, y, nperm = 100, type = "dichotomous", interaction = 0)
|
x |
a matrix of numeric genotypes with each row as an individual and each column as a separate rare SNP. Each genotype should be coded as |
y |
a vector of phenotypes. The length of |
nperm |
the number of permutations used to obtain the significance level. |
type |
a string to indicate if the phenoype is continuous or dichotomous. It could take values "dichotomous" or "continuous". |
interaction |
an integer indicating if the interaction is considered when computing the information score. See Details. |
There are three types of interactions: 1 - compute the score without interaction (score I1); 2 - compute the score with interaction (score I2); 0 - compute both scores with and without interaction as well as the adaptive p* score.
I |
The numeric value of I score. Could be a vector of 3 values if interaction=0. |
pvalue |
The p-value of corresponding I score.Could be a vector of 3 values if interaction=0. |
nperm |
Number of permutations. |
call |
The matched call. |
type |
Type of methods used. Could be "I1","I2" or "p*". |
Ruixue Fan rf2283@columbia.edu
Fan, R., Lo, S-H (2013). A robust model-free approach for rare variantss association studies incorporating gene-gene and gene-environmental interactions. PLOS ONE 8(12):e83057.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | data(SPA_example)
attach(SPA_example)
## compute p-values of dichotomous traits
pstar_dich <- SPA.I(x,y.d,nperm=10) #compute I1,I2 and p* and their p-values
print(pstar_dich)
I1_dich <- SPA.I(x,y.d,interaction=1,nperm=10) # only compute I1 and its pvalue
print(I1_dich)
## compute p-values of continuous traits
pstar_cont <- SPA.I(x,y.c,nperm=10,type="cont") #compute I1,I2 and p* and their p-values
print(pstar_cont)
I1_cont <- SPA.I(x,y.c,type="cont",interaction=1,nperm=10) # only compute I1 and its pvalue
print(I1_cont)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.